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 ISetRelationships

interface ISetRelationships
Extends com.amazon.apmf.IStandard This interface allows a publisher to describe how this element is related to other elements.

Methods

labelFor()

void labelFor(ElementId id)
Set the ID of the element for which this component is a label.

Parameters

id
ElementId — Required the ID of the element for which this component is a label.

labeledBy()

void labeledBy(ElementId id)
Set the ID of the element which serves as this element’s label.

Parameters

id
ElementId — Required the ID of the element that labels this one.

describedBy()

void describedBy(ElementId[] ids)
Set a list of elements which describe this one.

Parameters

ids
ElementId[] — Required a list of IDs of elements which describe this one.

descriptionFor()

void descriptionFor(ElementId id)
Set the ID of the element this one describes.

Parameters

id
ElementId — Required the ID of the element this element describes.

errorMessage()

void errorMessage(ElementId id)
Set the ID of the element that displays an error message that is relevant to this component. 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

id
ElementId — Required the ID of the element which displays the error message.
Last modified on October 29, 2026