Interface IAccessibilityDelegate
interface IAccessibilityDelegate
Extends com.amazon.apmf.IStandard
This interface exposes a collection of APIs which the user can implement to emit custom properties for
accessibility information. Each function of this delegate provides an additional parameter which holds a pointer
to the default implementation of this delegate. The default delegate will hold a reference to the appropriate class
onto which this delegate is set. For example, if this delegate is set to an ITextView, then the default delegate
will hold a reference relevant to ITextView properties. This enables the user to call the base implementation
of the function as per the use-case (similar to calling the parent class function from the overriden function
in child class).
Methods
build()
This method provides functionality to set custom accessibility properties as per the use-case of the user. By default this function only adds a node corresponding to the view in the UCC tree, but does not emit any accessibility information.voidbuild(IAccessibilityContext*context,IAccessibilityDelegate*defaultDelegate)
Parameters
context
IAccessibilityContext* — Required
IAccessibilityContext.
defaultDelegate
IAccessibilityDelegate* — Required
IAccessibilityDelegate Pointer to the default implementation of
IAccessibilityDelegate. defaultDelegate#buildAccessibilityInfo will add a node corresponding to the
view in the UCC tree, but does not emit any accessibility information.
clear()
This method provides functionality clear all or selected accessibility traits. By default this function does not clear any accessibility traits.voidclear(IAccessibilityContext*context,IAccessibilityDelegate*defaultDelegate)
Parameters
context
IAccessibilityContext* — Required
IAccessibilityContext.
defaultDelegate
IAccessibilityDelegate* — Required
IAccessibilityDelegate Pointer to the default implementation of
IAccessibilityDelegate.

