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 IViewModule

interface IViewModule
Extends com.amazon.apmf.IStandard Factory for generating ui objects.

Methods

makeView()

IView* makeView()
Create a new IView instance. This method creates and returns a new IView object.

Returns

IView* A IView object to the newly created View instance.

makeScrollableView()

IScrollableView* makeScrollableView(Axis axis)
Create a new Scrollable instance. This method creates and returns a new Scrollable object with the specified scrolling direction.

Parameters

axis
Axis — Required The axis configuration (e.g., horizontal or vertical).

Returns

IScrollableView* A pointer to the newly created Scrollable instance.

makeFlingConfigBuilder()

IFlingConfigBuilder* 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.

Returns

IFlingConfigBuilder* A pointer to the newly created IFlingConfigBuilder instance.

makeSnapConfigBuilder()

ISnapConfigBuilder* 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.

Returns

ISnapConfigBuilder* A pointer to the newly created ISnapConfigBuilder instance.

makeTextView()

ITextView* makeTextView(com.amazon.kepler.uitoolkit.graphics.ITextLayout* layout)
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.

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()

IFocusManager* makeFocusManager()
Factory function to create an instance of IFocusManager.

Returns

IFocusManager* Pointer to a newly created IFocusManager instance.

makeAnimatorBuilder()

IAnimatorBuilder* 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.

Returns

IAnimatorBuilder* An instance of IAnimatorBuilder.

makeInterpolatorModule()

IInterpolatorModule* makeInterpolatorModule()
Creates and returns a new instance of an IInterpolatorModule.

Returns

IInterpolatorModule* An instance of IInterpolatorModule.

makeAnimationValueBuilder()

IAnimationValueBuilder* makeAnimationValueBuilder()
Creates and returns a new instance of an IAnimationValueBuilder.

Returns

IAnimationValueBuilder* An instance of IAnimationValueBuilder.

makeImageView()

IImageView* makeImageView()
Creates a new IImageView instance.

Returns

IImageView* An IImageView instance.

makeImageLoader()

IImageLoader* makeImageLoader()
Creates a new IImageLoader instance.

Returns

IImageLoader* An IImageLoader instance.

makeImageOptionsBuilder()

IImageOptionsBuilder* makeImageOptionsBuilder()
Creates a new IImageOptionsBuilder instance.

Returns

IImageOptionsBuilder* An IImageOptionsBuilder instance.

getImageCacheManager()

IImageCacheManager* getImageCacheManager()
Gets the IImageCacheManager instance associated with the current context.

Returns

IImageCacheManager* A pointer to IImageCacheManager instance.

makeMediaSurfaceView()

ISurfaceView* makeMediaSurfaceView(ISurfaceViewListener* listener)
Creates and returns a surface view which can be used for media use cases.

Parameters

listener
ISurfaceViewListener* — Required A pointer to ISurfaceViewListener.

Returns

ISurfaceView* A pointer to ISurfaceView object.

makeGLSurfaceView()

ISurfaceView* makeGLSurfaceView(ISurfaceViewListener* listener)
Creates and returns surface view which can be used for a GL rendering.

Parameters

listener
ISurfaceViewListener* — Required A pointer to ISurfaceViewListener.

Returns

ISurfaceView* A pointer to ISurfaceView object.

makeViewWithDelegate()

IView* makeViewWithDelegate(IViewDelegate* viewDelegate)
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.

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()

IAccessibilityService* makeAccessibilityService()
Factory function to create an instance of IAccessibilityService.

Returns

IAccessibilityService* Pointer to a newly created IAccessibilityService instance.

makeLottieView()

ILottieView* makeLottieView()
Factory function to create a new ILottieView instance.

Returns

ILottieView* Pointer to the newly created ILottieView instance.

makeEditableView()

IEditableView* makeEditableView(string text)
Create a new editable instance. This method creates and returns a new 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()

IKeyboardManager* makeKeyboardManager(ITextInputControllerDelegate? textInputControllerDelegate)
Factory function to create a new 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()

IAuxiliaryOptionsBuilder* makeAuxiliaryOptionsBuilder()
Factory function to create an instance of 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.
Last modified on October 29, 2026