Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Interface IRelationshipsTraitBuilder

interface IRelationshipsTraitBuilder
Extends com.amazon.apmf.IStandard IRelationshipsTraitBuilder interface to build the ITrait interface which is used to describe how this view is related to other views.

Methods

labelFor()

void labelFor(IView* view)
Add the view for which the current view serves as a label.

Parameters

view
IView* — Required The view for which the current view is a label.

labeledBy()

void labeledBy(IView* view)
Add the view which serves as the current view’s label.

Parameters

view
IView* — Required The view that labels this one.

describedBy()

void describedBy(IView*[] views)
Add a list of views which describe the current view.

Parameters

views
IView*[] — Required A list of views which describe the current one.

descriptionFor()

void descriptionFor(IView* view)
Add the view which is described by the current view.

Parameters

view
IView* — Required The view this element describes.

errorMessage()

void errorMessage(IView* view)
Add the view that displays an error message that is relevant to this view. For example; if a full-screen keyboard is prompting for a password; an error message somewhere else on the screen might indicate that the wrong password was entered.

Parameters

view
IView* — Required The view which displays the error message.

build()

ITrait* build()
Build the ITrait object using the setters.

Returns

ITrait* The ITrait object which will be passed to the IAccessibilityContext.
Last modified on October 29, 2026