Interface IViewModule
interface IViewModule
Extends com.amazon.apmf.IStandard
Factory for generating ui objects.
Methods
makeView()
Create a new IView instance. This method creates and returns a new IView object.IView*makeView()
Returns
IView*
A IView object to the newly created View instance.
makeScrollableView()
Create a new Scrollable instance. This method creates and returns a new Scrollable object with the specified scrolling direction.IScrollableView*makeScrollableView(Axisaxis)
Parameters
axis
Axis — Required
The axis configuration (e.g., horizontal or vertical).
Returns
IScrollableView*
A pointer to the newly created Scrollable instance.
makeFlingConfigBuilder()
Creates a new IFlingConfigBuilder instance. This method creates and returns a new IFlingConfigBuilder object that can be used to configure parameters for fling animations.IFlingConfigBuilder*makeFlingConfigBuilder()
Returns
IFlingConfigBuilder*
A pointer to the newly created IFlingConfigBuilder instance.
makeSnapConfigBuilder()
Creates a new ISnapConfigBuilder instance. This method creates and returns a new ISnapConfigBuilder object that can be used to configure parameters for snap animations.ISnapConfigBuilder*makeSnapConfigBuilder()
Returns
ISnapConfigBuilder*
A pointer to the newly created ISnapConfigBuilder instance.
makeTextView()
Creates a new ITextView object based on the given text layout. This function creates a new ITextView object by generating text content based on the provided ITextLayout.ITextView*makeTextView(com.amazon.kepler.uitoolkit.graphics.ITextLayout*layout)
Parameters
layout
com.amazon.kepler.uitoolkit.graphics.ITextLayout* — Required
ITextLayout object that serves as the basis for the new ITextView.
Returns
ITextView*
the newly created ITextView object.
makeFocusManager()
Factory function to create an instance ofIFocusManager*makeFocusManager()
IFocusManager.
Returns
IFocusManager*
Pointer to a newly created IFocusManager instance.
makeAnimatorBuilder()
Creates and returns a new instance of an IAnimatorBuilder, which can be used to construct an IAnimator with customizable animation properties such as duration, interpolator, etc.IAnimatorBuilder*makeAnimatorBuilder()
Returns
IAnimatorBuilder*
An instance of IAnimatorBuilder.
makeInterpolatorModule()
Creates and returns a new instance of an IInterpolatorModule.IInterpolatorModule*makeInterpolatorModule()
Returns
IInterpolatorModule*
An instance of IInterpolatorModule.
makeAnimationValueBuilder()
Creates and returns a new instance of an IAnimationValueBuilder.IAnimationValueBuilder*makeAnimationValueBuilder()
Returns
IAnimationValueBuilder*
An instance of IAnimationValueBuilder.
makeImageView()
Creates a newIImageView*makeImageView()
IImageView instance.
Returns
IImageView*
An IImageView instance.
makeImageLoader()
Creates a newIImageLoader*makeImageLoader()
IImageLoader instance.
Returns
IImageLoader*
An IImageLoader instance.
makeImageOptionsBuilder()
Creates a newIImageOptionsBuilder*makeImageOptionsBuilder()
IImageOptionsBuilder instance.
Returns
IImageOptionsBuilder*
An IImageOptionsBuilder instance.
getImageCacheManager()
Gets theIImageCacheManager*getImageCacheManager()
IImageCacheManager instance associated with the current context.
Returns
IImageCacheManager*
A pointer to IImageCacheManager instance.
makeMediaSurfaceView()
Creates and returns a surface view which can be used for media use cases.ISurfaceView*makeMediaSurfaceView(ISurfaceViewListener*listener)
Parameters
listener
ISurfaceViewListener* — Required
A pointer to ISurfaceViewListener.
Returns
ISurfaceView*
A pointer to ISurfaceView object.
makeGLSurfaceView()
Creates and returns surface view which can be used for a GL rendering.ISurfaceView*makeGLSurfaceView(ISurfaceViewListener*listener)
Parameters
listener
ISurfaceViewListener* — Required
A pointer to ISurfaceViewListener.
Returns
ISurfaceView*
A pointer to ISurfaceView object.
makeViewWithDelegate()
Returns a new instance of a view in which consumer can set delegate to customize its behaviour. This api is typically used to create a user defined view.IView*makeViewWithDelegate(IViewDelegate*viewDelegate)
Parameters
viewDelegate
IViewDelegate* — Required
IViewDelegate Instance of the delegate which allows consumer to define custom
behaviour.
Returns
IView*
IView An IView object to the newly created View instance.
makeAccessibilityService()
Factory function to create an instance of IAccessibilityService.IAccessibilityService*makeAccessibilityService()
Returns
IAccessibilityService*
Pointer to a newly created IAccessibilityService instance.
makeLottieView()
Factory function to create a newILottieView*makeLottieView()
ILottieView instance.
Returns
ILottieView*
Pointer to the newly created ILottieView instance.
makeEditableView()
Create a new editable instance. This method creates and returns a newIEditableView*makeEditableView(stringtext)
IEditableView object. It implements
ITextInputController and ITextInputControllerDelegate interfaces.
Parameters
text
string — Required
string to set the text of IEditableView.
Returns
IEditableView*
A pointer to the newly created IEditableView instance.
makeKeyboardManager()
Factory function to create a newIKeyboardManager*makeKeyboardManager(ITextInputControllerDelegate?textInputControllerDelegate)
IKeyboardManager instance.
Parameters
textInputControllerDelegate
ITextInputControllerDelegate? — Optional
A pointer to ITextInputControllerDelegate,
which allow for customization and extension of the text input operations.
Returns
IKeyboardManager*
Pointer to the newly created IKeyboardManager instance.
Usage: To acquire the instance of ITextInputController, Developers will need
to query this interface using tryQueryInterface on IKeyboardManager instance.
makeAuxiliaryOptionsBuilder()
Factory function to create an instance ofIAuxiliaryOptionsBuilder*makeAuxiliaryOptionsBuilder()
IAuxiliaryOptionsBuilder.
This function creates and returns a new instance of an IAuxiliaryOptionsBuilder,
which can be used to build and customize keyboard layouts, such as the keyboard title.
Returns
IAuxiliaryOptionsBuilder*
Pointer to a newly created IAuxiliaryOptionsBuilder instance.

