Class: ActivityBackPressedEventProxy¶
Provides event data for OnActivityBackPressed, the Android page-level back button.
Hierarchy¶
-
ActivityBackPressedEventProxy
Implements¶
Summary¶
Constructors¶
Properties¶
Class Properties¶
Currently none in this class.
Inherited Properties¶
Currently none inherited from the parent class(es).
Accessors¶
Class Accessors¶
Inherited Accessors¶
Methods¶
Class Methods¶
Currently none in this class.
Inherited Methods¶
Currently none inherited from the parent class(es).
Constructors¶
Constructor¶
+ new ActivityBackPressedEventProxy(args: any): ActivityBackPressedEventProxy
Overrides EventDataProxy.constructor
Parameters:
| Name | Type |
|---|---|
| args | any |
Returns: ActivityBackPressedEventProxy
Accessors¶
cancel¶
Get Signature¶
▸ getter
Set to true to cancel the default back navigation.
Example¶
const isCancelled = context.getEventData().cancel; // false by default
context.getEventData().cancel = true; // prevent back navigation
Returns¶
boolean
Set Signature¶
▸ setter
Set to true to cancel the default back navigation.
Example¶
const isCancelled = context.getEventData().cancel; // false by default
context.getEventData().cancel = true; // prevent back navigation
Parameters¶
value¶
boolean
Returns¶
void
Set to true to cancel the default back navigation.
Implementation of IActivityBackPressedEventData.cancel
data¶
Get Signature¶
▸ getter
Provides the raw Android back-pressed event arguments.
Example¶
const args = context.getEventData().data;
Returns¶
any
Provides the raw Android back-pressed event arguments.
Implementation of IActivityBackPressedEventData.data