Class: PressedItem¶
Used to keep track of what item was pressed to trigger an action. Different APIs are used for different types of pressed items (Control/ActionBer Item/Toolbar Item).
Hierarchy¶
-
unknown -
PressedItem
Methods¶
getActionItem¶
▸ getActionItem(): any
Returns: any
return the pressed actionbar item
getControlView¶
▸ getControlView(): any
Returns: any
return the view of the control if the pressed item is a control
getNativeView¶
▸ getNativeView(): any
Returns: any
return the native view of the control
getSideDrawerMenuItem¶
▸ getSideDrawerMenuItem(): any
Returns: any
return the pressed menu item
getTabItem¶
▸ getTabItem(): any
Returns: any
return the pressed tab item
getToolbarItem¶
▸ getToolbarItem(): any
Returns: any
return the pressed toolbar item
isActionItem¶
▸ isActionItem(): boolean
Returns: boolean
return whether it is actionbar item (means the pressed item is a actionbar item)
isControlView¶
▸ isControlView(): boolean
Returns: boolean
return whether it is control view (means the pressed item is a control)
isNativeView¶
▸ isNativeView(): boolean
Returns: boolean
return whether it is native view (means the pressed item is a control's native view)
isTabItem¶
▸ isTabItem(): boolean
Returns: boolean
return whether it is tab item (means the pressed item is a tab item)
isToolbarItem¶
▸ isToolbarItem(): boolean
Returns: boolean
return whether it is toolbar item (means the pressed item is a toolbar item)
Static WithActionItem¶
▸ WithActionItem(actionItem: any): PressedItem
Parameters:
| Name | Type |
|---|---|
| actionItem | any |
Returns: PressedItem
the item of the pressed actionbar item
Static WithControlView¶
▸ WithControlView(controlView: any): PressedItem
Parameters:
| Name | Type | Description |
|---|---|---|
| controlView | any | the view for the control |
Returns: PressedItem
the pressed control based on the defined view
Static WithNativeView¶
▸ WithNativeView(nativeView: any): PressedItem
Parameters:
| Name | Type | Description |
|---|---|---|
| nativeView | any | the view for the control |
Returns: PressedItem
the pressed control based on the defined view
Static WithSideDrawerMenuItem¶
▸ WithSideDrawerMenuItem(menuItem: any): PressedItem
Parameters:
| Name | Type | Description |
|---|---|---|
| menuItem | any | the sidedrawer menu item |
Returns: PressedItem
the item of the pressed sidedrawer menu item
Static WithTabItem¶
▸ WithTabItem(tabItem: any): PressedItem
Parameters:
| Name | Type | Description |
|---|---|---|
| tabItem | any | the tab item |
Returns: PressedItem
the item of the pressed tab item
Static WithToolbarItem¶
▸ WithToolbarItem(toolbarItem: any): PressedItem
Parameters:
| Name | Type | Description |
|---|---|---|
| toolbarItem | any | the toolbar item |
Returns: PressedItem
the item of the pressed toolbar item
Summary¶
Constructors¶
Properties¶
Class Properties¶
Currently none in this class.
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¶
- getActionItem
- getControlView
- getNativeView
- getSideDrawerMenuItem
- getTabItem
- getToolbarItem
- isActionItem
- isControlView
- isNativeView
- isTabItem
- isToolbarItem
- WithActionItem
- WithControlView
- WithNativeView
- WithSideDrawerMenuItem
- WithTabItem
- WithToolbarItem
Inherited Methods¶
Currently none inherited from the parent class(es).