Class: IView¶
Hierarchy¶
-
IView
Summary¶
Properties¶
Class Properties¶
Inherited Properties¶
None in the parent class(es).
Methods¶
Class Methods¶
- androidContext
- definition
- destroy
- executeAction
- executeActionOrRule
- initialize
- onDismissingModal
- onDisplayingModal
- onNavigatedFrom
- onNavigatedTo
- onNavigatingFrom
- onNavigatingTo
- onPageLoaded
- onPageUnloaded
- onPress
- setStyle
- valueResolver
- view
- viewIsNative
Inherited Methods¶
None in the parent class(es).
Properties¶
Protected
_props¶
• _props: any
context¶
• context: IContext
Methods¶
androidContext¶
▸ androidContext(): any
Called to get the android.content.Context object necessary to create view objects.
Returns: any
definition¶
▸ definition(): any
Getter for the view's definition.
Returns: any
The view's definition.
destroy¶
▸ destroy(): void
Returns: void
Protected
executeAction¶
▸ executeAction(actionOrRulePath
: any): Promise‹any›
deprecated
- use executeActionOrRule
Parameters:
Name | Type |
---|---|
actionOrRulePath |
any |
Returns: Promise‹any›
Protected
executeActionOrRule¶
▸ executeActionOrRule(actionOrRulePath
: any): Promise‹any›
Called to excecute action or rule from control.
Parameters:
Name | Type |
---|---|
actionOrRulePath |
any |
Returns: Promise‹any›
action or rule reference
initialize¶
▸ initialize(controlData
: IControlData): void
Called to initialize view. props object passed in containing all relevant properties and view's context.
Parameters:
Name | Type |
---|---|
controlData |
IControlData |
Returns: void
onDismissingModal¶
▸ onDismissingModal(): void
Returns: void
onDisplayingModal¶
▸ onDisplayingModal(isFullPage
: boolean): void
Parameters:
Name | Type |
---|---|
isFullPage |
boolean |
Returns: void
onNavigatedFrom¶
▸ onNavigatedFrom(pageExists
: boolean): void
Parameters:
Name | Type |
---|---|
pageExists |
boolean |
Returns: void
onNavigatedTo¶
▸ onNavigatedTo(initialLoading
: boolean): void
Parameters:
Name | Type |
---|---|
initialLoading |
boolean |
Returns: void
onNavigatingFrom¶
▸ onNavigatingFrom(pageExists
: boolean): void
Parameters:
Name | Type |
---|---|
pageExists |
boolean |
Returns: void
onNavigatingTo¶
▸ onNavigatingTo(initialLoading
: boolean): void
Parameters:
Name | Type |
---|---|
initialLoading |
boolean |
Returns: void
onPageLoaded¶
▸ onPageLoaded(initialLoading
: boolean): void
Called when parent page is being loaded.
Parameters:
Name | Type | Description |
---|---|---|
initialLoading |
boolean | Whether or not it is being loaded for the first time |
Returns: void
onPageUnloaded¶
▸ onPageUnloaded(pageExists
: boolean): void
Called when the parent page is unloaded.
Parameters:
Name | Type | Description |
---|---|---|
pageExists |
boolean | Whether or not the page still exists on the stack after unload |
Returns: void
onPress¶
▸ onPress(...args
: any[]): void
Parameters:
Name | Type |
---|---|
...args |
any[] |
Returns: void
setStyle¶
▸ setStyle(): void
Called to tell the view to set its styles.
Returns: void
valueResolver¶
▸ valueResolver(): ValueResolver
Getter for the value resolver.
Returns: ValueResolver
The value resolver.
Abstract
view¶
▸ view(): any
Called to retrieve the view to display.
Returns: any
- View to display
viewIsNative¶
▸ viewIsNative(): boolean
Called to find out if the view is implemented in a native plugin. If the view is a custom native view, this needs to be overriden and set to true so it can be correctly added to our layout.
Returns: boolean
- true if it is a custom native view, false if not.