Table of Contents

Class IosUiContext

Namespace
VpnHood.AppLib.App.Ios
Assembly
VpnHood.AppLib.App.Ios.dll

Represents the iOS app's UI context: it reports the app as active and not destroyed whenever it is asked, as the app has one view controller for its whole run.

public class IosUiContext : IUiContext
Inheritance
IosUiContext
Implements
Inherited Members

Methods

IsActive()

Determines whether the UI is shown to the user, as far as the platform tells: Android checks its view, and iOS always answers true.

public Task<bool> IsActive()

Returns

Task<bool>

A task whose result is true if it is; otherwise, false.

Remarks

It always gives true.

IsDestroyed()

Determines whether the UI is gone, as far as the platform tells: a desktop reports a hidden window as gone, and iOS never reports one.

public Task<bool> IsDestroyed()

Returns

Task<bool>

A task whose result is true if it is; otherwise, false.

Remarks

It always gives false.