Interface IActivityEvent
- Namespace
- VpnHood.Core.Client.Devices.Android.ActivityEvents
- Assembly
- VpnHood.Core.Client.Devices.Android.dll
Defines an Android activity whose lifecycle calls and results are raised as events.
public interface IActivityEvent
Properties
Activity
Gets the activity.
Activity Activity { get; }
Property Value
Events
ActivityResultEvent
Occurs when an activity this one started returns its result.
event EventHandler<ActivityResultEventArgs> ActivityResultEvent
Event Type
ConfigurationChangedEvent
Occurs when the device's configuration has changed, with the new one.
event EventHandler<Configuration>? ConfigurationChangedEvent
Event Type
CreateEvent
Occurs when the activity is created.
event EventHandler<CreateEventArgs> CreateEvent
Event Type
DestroyEvent
Occurs when the activity is about to be destroyed.
event EventHandler DestroyEvent
Event Type
KeyDownEvent
Occurs when a key is pressed, before the activity handles it.
event EventHandler<KeyDownArgs> KeyDownEvent
Event Type
NewIntentEvent
Occurs when the activity, already running, is started again with a new intent.
event EventHandler<NewIntentEventArgs> NewIntentEvent
Event Type
PauseEvent
Occurs when the activity is paused.
event EventHandler? PauseEvent
Event Type
RequestPermissionsResultEvent
Occurs when the person has answered a request for permissions.
event EventHandler<RequestPermissionsResultArgs> RequestPermissionsResultEvent
Event Type
ResumeEvent
Occurs when the activity is resumed.
event EventHandler? ResumeEvent