Abstract Class: IView¶
Hierarchy¶
-
IView
Summary¶
Constructors¶
Properties¶
Class Properties¶
Inherited Properties¶
Currently none inherited from the parent class(es).
Accessors¶
Class Accessors¶
Currently none in this class.
Inherited Accessors¶
Currently none inherited from the parent class(es).
Methods¶
Class Methods¶
- androidContext
- definition
- destroy
- executeAction
- executeActionOrRule
- initialize
- onDismissingModal
- onDisplayingModal
- onNavigatedFrom
- onNavigatedTo
- onNavigatingFrom
- onNavigatingTo
- onPageLoaded
- onPageUnloaded
- onPress
- setStyle
- valueResolver
Abstractview- viewIsNative
Inherited Methods¶
Currently none inherited from the parent class(es).
Constructors¶
Constructor¶
+ new IView(): IView
Returns: IView
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>
Parameters:
| Name | Type |
|---|---|
| actionOrRulePath | any |
Returns: Promise<any>
Deprecated¶
- use executeActionOrRule
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(): typeof ValueResolver
Getter for the value resolver.
Returns: typeof 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.