Interface IUiContext
- Namespace
- VpnHood.Core.Client.Devices.Abstractions.UiContexts
- Assembly
- VpnHood.Core.Client.Devices.Abstractions.dll
Defines the app's UI as the device sees it, as an activity on Android, in which the device shows its prompts and the app its ads.
public interface IUiContext
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.
Task<bool> IsActive()
Returns
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.
Task<bool> IsDestroyed()