Interface IAccessibilityContext
interface IAccessibilityContext
Extends com.amazon.apmf.IStandard
The IAccessibilityContext interface for creating Trait builders and retrieving setter APIs to publish
accessibility metadata.
This will publish the accessibility information for the current view by default, if not specified explicitly
using the publishForView API
These APIs target VegaUIFramework customers and internally rely on UCC APIs.
UI Framework authors who do not use VegaUIFramework as a UI Toolkit can directly use the
lower level UCC APIs for publishing Accessibility information.
Methods
getView()
Returns the view associated with the accessibility context.IView*getView()
Returns
IView*
pointer to the view.
publishForView()
Updates the current context to publish accessibility metadata for the passed view. This will ensure that the setter APIs called afterwards will publish for the user passed view. Note: If this API is called, no accessibility info will be published for the current view but only for the passed view and the current view will not be visible in the accessibility tree. By default, if this API is not called, accessibility metadata will be published for the current view The user passed view other than the current view is expected to be one of it’s ancestors (parent views)voidpublishForView(IView*view)
Parameters
view
IView* — Required
IView The view for which children accessibility information needs to be emitted.
makeEditableTraitBuilder()
Factory function to create an instance of IEditableTraitBuilder.IEditableTraitBuilder*makeEditableTraitBuilder()
Returns
IEditableTraitBuilder*
Pointer to a newly created IEditableTraitBuilder instance.
makeExpandableTraitBuilder()
Factory function to create an instance of IExpandableTraitBuilder.IExpandableTraitBuilder*makeExpandableTraitBuilder()
Returns
IExpandableTraitBuilder*
Pointer to a newly created IExpandableTraitBuilder instance.
makeScrollableTraitBuilder()
Factory function to create an instance of IScrollableTraitBuilder.IScrollableTraitBuilder*makeScrollableTraitBuilder()
Returns
IScrollableTraitBuilder*
Pointer to a newly created IScrollableTraitBuilder instance.
makeSelectableTraitBuilder()
Factory function to create an instance of ISelectableTraitBuilder.ISelectableTraitBuilder*makeSelectableTraitBuilder()
Returns
ISelectableTraitBuilder*
Pointer to a newly created ISelectableTraitBuilder instance.
makeSwitchableTraitBuilder()
Factory function to create an instance of ISwitchableTraitBuilder.ISwitchableTraitBuilder*makeSwitchableTraitBuilder()
Returns
ISwitchableTraitBuilder*
Pointer to a newly created ISwitchableTraitBuilder instance.
makeRelationshipsTraitBuilder()
Factory function to create an instance of IRelationshipsTraitBuilder.IRelationshipsTraitBuilder*makeRelationshipsTraitBuilder()
Returns
IRelationshipsTraitBuilder*
Pointer to a newly created IRelationshipsTraitBuilder instance.
makeVoiceAssistantTraitBuilder()
Factory function to create an instance of IVoiceAssistantTraitBuilder.IVoiceAssistantTraitBuilder*makeVoiceAssistantTraitBuilder()
Returns
IVoiceAssistantTraitBuilder*
Pointer to a newly created IVoiceAssistantTraitBuilder instance.
makeTableTraitBuilder()
Factory function to create an instance of ITableTraitBuilder.ITableTraitBuilder*makeTableTraitBuilder()
Returns
ITableTraitBuilder*
Pointer to a newly created ITableTraitBuilder instance.
makeValueTraitBuilder()
Factory function to create an instance of IValueTraitBuilder.IValueTraitBuilder*makeValueTraitBuilder()
Returns
IValueTraitBuilder*
Pointer to a newly created IValueTraitBuilder instance.
makeHintsTraitBuilder()
Factory function to create an instance of IHintsTraitBuilder.IHintsTraitBuilder*makeHintsTraitBuilder()
Returns
IHintsTraitBuilder*
Pointer to a newly created IHintsTraitBuilder instance.
makePageableTraitBuilder()
Factory function to create an instance of IPageableTraitBuilder.IPageableTraitBuilder*makePageableTraitBuilder()
Returns
IPageableTraitBuilder*
Pointer to a newly created IPageableTraitBuilder instance.
makeTableCellTraitBuilder()
Factory function to create an instance of ITableCellTraitBuilder.ITableCellTraitBuilder*makeTableCellTraitBuilder()
Returns
ITableCellTraitBuilder*
Pointer to a newly created ITableCellTraitBuilder instance.
makeVisibilityTraitBuilder()
Factory function to create an instance of IVisibilityTraitBuilder.IVisibilityTraitBuilder*makeVisibilityTraitBuilder()
Returns
IVisibilityTraitBuilder*
Pointer to a newly created IVisibilityTraitBuilder instance.
makeAdjustableTraitBuilder()
Factory function to create an instance of IAdjustableTraitBuilder.IAdjustableTraitBuilder*makeAdjustableTraitBuilder()
Returns
IAdjustableTraitBuilder*
Pointer to a newly created IAdjustableTraitBuilder instance.
makePaneTraitBuilder()
Factory function to create an instance of IPaneTraitBuilder.IPaneTraitBuilder*makePaneTraitBuilder()
Returns
IPaneTraitBuilder*
Pointer to a newly created IPaneTraitBuilder instance.
makeHeadingTraitBuilder()
Factory function to create an instance of IHeadingTraitBuilder.IHeadingTraitBuilder*makeHeadingTraitBuilder()
Returns
IHeadingTraitBuilder*
Pointer to a newly created IHeadingTraitBuilder instance.
makeCheckableTraitBuilder()
Factory function to create an instance of ICheckableTraitBuilder.ICheckableTraitBuilder*makeCheckableTraitBuilder()
Returns
ICheckableTraitBuilder*
Pointer to a newly created ICheckableTraitBuilder instance.
makeFocusableTraitBuilder()
Factory function to create an instance of IFocusableTraitBuilder.IFocusableTraitBuilder*makeFocusableTraitBuilder()
Returns
IFocusableTraitBuilder*
Pointer to a newly created IFocusableTraitBuilder instance.
makeEnableableTraitBuilder()
Factory function to create an instance of IEnableableTraitBuilder.IEnableableTraitBuilder*makeEnableableTraitBuilder()
Returns
IEnableableTraitBuilder*
Pointer to a newly created IEnableableTraitBuilder instance.
makeCompoundComponentTraitBuilder()
Factory function to create an instance of ICompoundComponentTraitBuilder.ICompoundComponentTraitBuilder*makeCompoundComponentTraitBuilder()
Returns
ICompoundComponentTraitBuilder*
Pointer to a newly created ICompoundComponentTraitBuilder instance.
makeLiveTraitBuilder()
Factory function to create an instance of ILiveTraitBuilder.ILiveTraitBuilder*makeLiveTraitBuilder()
Returns
ILiveTraitBuilder*
Pointer to a newly created ILiveTraitBuilder instance.
makeHiddenTraitBuilder()
Factory function to create an instance of IHiddenTraitBuilder.IHiddenTraitBuilder*makeHiddenTraitBuilder()
Returns
IHiddenTraitBuilder*
Pointer to a newly created IHiddenTraitBuilder instance.
setTrait()
Set the Accessibility trait for current/user specified view. The given ITrait object can represent any Trait Data Object which was built using the corresponding builder. Note: Multiple calls for setting the same trait will override the previous values.voidsetTrait(ITrait*accessibilityTrait)
Parameters
accessibilityTrait
ITrait* — Required
The ITrait object that represents a trait data object built using the
trait specific builder.
For e.g. Editable Trait; Checkable Trait; etc.
clearTrait()
Clear the give accessibility trait from the current/user specified view.voidclearTrait(TraitType*TraitType)
Parameters
TraitType
TraitType* — Required
The TraitType representing the trait to be removed from the view.
For e.g. EDITABLE; CHECKABLE; etc.
setAccessibilityActions()
Set actions property of a view. Actions are custom listeners which a view can expose to allow a client to trigger its functionality. Exposing the functionality through the standard set of traits is preferred over this. The actions property is a list of IAction objects. To add actions to a view, the user must create an object that implements the IAction interface Note: Multiple calls for setting actions will override the previous values.voidsetAccessibilityActions(com.amazon.kepler.ucc.v1_0.common.IAction*[]actions)
Parameters
actions
com.amazon.kepler.ucc.v1_0.common.IAction*[] — Required
A list of IAction objects representing standard/custom actions this view supports
clearActionsByName()
Remove actions from a view.voidclearActionsByName(stringname)
Parameters
name
string — Required
the name of the action to remove
clearAllActions()
void clearAllActions()
Remove all actions from a view.
setDescription()
Set human readable description of a view. Note: Multiple calls to this API will override the previous values set for Description.voidsetDescription(stringtext)
Parameters
text
string — Required
String of human readable description of the view
setRole()
Set role for a view which provides further descriptive information, beyond what can be derived from the traits alone. Note: Multiple calls to this API will override the previous values set for Role.voidsetRole(com.amazon.kepler.ucc.v1_0.common.Role*role)
Parameters
role
com.amazon.kepler.ucc.v1_0.common.Role* — Required
Role for the view.
setText()
Set the on-screen text of the view. This list contains the text chunks displayed in this view. If the text is descriptive, and is not displayed on-screen, it should be set withvoidsetText(com.amazon.kepler.ucc.v1_0.common.TextChunk[]chunks)
setDescription instead.
Note: Multiple calls to this API will override the previous values set for Text.
Parameters
chunks
com.amazon.kepler.ucc.v1_0.common.TextChunk[] — Required
The list of TextChunks containing the on-screen text of the view
setNames()
Set names for a view; which is a list of human or machine readable names for the view. These would be used to identify this view. Note: Multiple calls to this API will override the previous values set for Names.voidsetNames(string[]names)
Parameters
names
string[] — Required
A string list of names which identify the view
setTestId()
Set test_id for a view; which allows clients to reliably remember and find particular instances of views on-screen. Note: Multiple calls to this API will override the previous values set for TestId.voidsetTestId(stringtestId)
Parameters
testId
string — Required
string containing the unique ID of the view within the application

