Table of Contents

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

Activity

Events

ActivityResultEvent

Occurs when an activity this one started returns its result.

event EventHandler<ActivityResultEventArgs> ActivityResultEvent

Event Type

EventHandler<ActivityResultEventArgs>

ConfigurationChangedEvent

Occurs when the device's configuration has changed, with the new one.

event EventHandler<Configuration>? ConfigurationChangedEvent

Event Type

EventHandler<Configuration>

CreateEvent

Occurs when the activity is created.

event EventHandler<CreateEventArgs> CreateEvent

Event Type

EventHandler<CreateEventArgs>

DestroyEvent

Occurs when the activity is about to be destroyed.

event EventHandler DestroyEvent

Event Type

EventHandler

KeyDownEvent

Occurs when a key is pressed, before the activity handles it.

event EventHandler<KeyDownArgs> KeyDownEvent

Event Type

EventHandler<KeyDownArgs>

NewIntentEvent

Occurs when the activity, already running, is started again with a new intent.

event EventHandler<NewIntentEventArgs> NewIntentEvent

Event Type

EventHandler<NewIntentEventArgs>

PauseEvent

Occurs when the activity is paused.

event EventHandler? PauseEvent

Event Type

EventHandler

RequestPermissionsResultEvent

Occurs when the person has answered a request for permissions.

event EventHandler<RequestPermissionsResultArgs> RequestPermissionsResultEvent

Event Type

EventHandler<RequestPermissionsResultArgs>

ResumeEvent

Occurs when the activity is resumed.

event EventHandler? ResumeEvent

Event Type

EventHandler