Table of Contents

Class IosWebViewAppDelegate

Namespace
VpnHood.AppUi.Hosting.WebView.Ios
Assembly
VpnHood.AppUi.Hosting.WebView.Ios.dll

Represents the web view UI's application delegate on iOS: a head's application delegate derives from it, says how its app starts (CreateInitParams()), and carries only what the system reads, its [Register] name.

public abstract class IosWebViewAppDelegate : UIApplicationDelegate, IEquatable<NSObject>, INSObjectProtocol, IUIApplicationDelegate, INativeObject, IDisposable
Inheritance
NSObject
UIApplicationDelegate
IosWebViewAppDelegate
Implements
IEquatable<NSObject>
INSObjectProtocol
IUIApplicationDelegate
INativeObject
Inherited Members
UIApplicationDelegate.AccessibilityPerformMagicTap()
UIApplicationDelegate.ApplicationSignificantTimeChange(UIApplication)
UIApplicationDelegate.ChangedStatusBarFrame(UIApplication, CGRect)
UIApplicationDelegate.ContinueUserActivity(UIApplication, NSUserActivity, UIApplicationRestorationHandler)
UIApplicationDelegate.DidChangeStatusBarOrientation(UIApplication, UIInterfaceOrientation)
UIApplicationDelegate.DidDecodeRestorableState(UIApplication, NSCoder)
UIApplicationDelegate.DidDiscardSceneSessions(UIApplication, NSSet<UISceneSession>)
UIApplicationDelegate.DidEnterBackground(UIApplication)
UIApplicationDelegate.DidRegisterUserNotificationSettings(UIApplication, UIUserNotificationSettings)
UIApplicationDelegate.FailedToRegisterForRemoteNotifications(UIApplication, NSError)
UIApplicationDelegate.FinishedLaunching(UIApplication)
UIApplicationDelegate.GetHandlerForIntent(UIApplication, INIntent)
UIApplicationDelegate.GetSupportedInterfaceOrientations(UIApplication, UIWindow)
UIApplicationDelegate.HandleOpenURL(UIApplication, NSUrl)
UIApplicationDelegate.OnActivated(UIApplication)
UIApplicationDelegate.OnResignActivation(UIApplication)
UIApplicationDelegate.OpenUrl(UIApplication, NSUrl, NSDictionary)
UIApplicationDelegate.OpenUrl(UIApplication, NSUrl, UIApplicationOpenUrlOptions)
UIApplicationDelegate.PerformActionForShortcutItem(UIApplication, UIApplicationShortcutItem, UIOperationHandler)
UIApplicationDelegate.ProtectedDataDidBecomeAvailable(UIApplication)
UIApplicationDelegate.ProtectedDataWillBecomeUnavailable(UIApplication)
UIApplicationDelegate.ReceiveMemoryWarning(UIApplication)
UIApplicationDelegate.ReceivedLocalNotification(UIApplication, UILocalNotification)
UIApplicationDelegate.ReceivedRemoteNotification(UIApplication, NSDictionary)
UIApplicationDelegate.RegisteredForRemoteNotifications(UIApplication, NSData)
UIApplicationDelegate.ShouldAllowExtensionPointIdentifier(UIApplication, NSString)
UIApplicationDelegate.ShouldAutomaticallyLocalizeKeyCommands(UIApplication)
UIApplicationDelegate.ShouldRequestHealthAuthorization(UIApplication)
UIApplicationDelegate.ShouldRestoreApplicationState(UIApplication, NSCoder)
UIApplicationDelegate.ShouldRestoreSecureApplicationState(UIApplication, NSCoder)
UIApplicationDelegate.ShouldSaveApplicationState(UIApplication, NSCoder)
UIApplicationDelegate.ShouldSaveSecureApplicationState(UIApplication, NSCoder)
UIApplicationDelegate.UserActivityUpdated(UIApplication, NSUserActivity)
UIApplicationDelegate.UserDidAcceptCloudKitShare(UIApplication, CKShareMetadata)
UIApplicationDelegate.WillChangeStatusBarFrame(UIApplication, CGRect)
UIApplicationDelegate.WillEncodeRestorableState(UIApplication, NSCoder)
UIApplicationDelegate.WillEnterForeground(UIApplication)
UIApplicationDelegate.WillFinishLaunching(UIApplication, NSDictionary)
UIApplicationDelegate.WillTerminate(UIApplication)
UIApplicationDelegate.Window
NSObject.PlatformAssembly
NSObject.Dispose()
NSObject.ConformsToProtocol(NativeHandle)
NSObject.DangerousRelease()
NSObject.DangerousRetain()
NSObject.DangerousAutorelease()
NSObject.BeginInvokeOnMainThread(Selector, NSObject)
NSObject.InvokeOnMainThread(Selector, NSObject)
NSObject.SetValueForKeyPath(NativeHandle, NSString)
NSObject.GetHashCode()
NSObject.Equals(NSObject)
NSObject.ToString()
NSObject.AwakeFromNib()
NSObject.CancelPreviousPerformRequest(NSObject)
NSObject.CancelPreviousPerformRequest(NSObject, Selector, NSObject)
NSObject.Copy()
NSObject.DidChange(NSKeyValueChange, NSIndexSet, NSString)
NSObject.DidChange(NSString, NSKeyValueSetMutationKind, NSSet)
NSObject.DoesNotRecognizeSelector(Selector)
NSObject.GetDictionaryOfValuesFromKeys(NSString[])
NSObject.GetKeyPathsForValuesAffecting(NSString)
NSObject.GetMethodForSelector(Selector)
NSObject.MutableCopy()
NSObject.PerformSelector(Selector)
NSObject.PerformSelector(Selector, NSObject)
NSObject.PerformSelector(Selector, NSObject, NSObject)
NSObject.PrepareForInterfaceBuilder()
NSObject.RemoveObserver(NSObject, NSString)
NSObject.SetNilValueForKey(NSString)
NSObject.SetValueForKey(NSObject, NSString)
NSObject.SetValueForKeyPath(NSObject, NSString)
NSObject.SetValueForUndefinedKey(NSObject, NSString)
NSObject.SetValuesForKeysWithDictionary(NSDictionary)
NSObject.ValueForKey(NSString)
NSObject.ValueForKeyPath(NSString)
NSObject.ValueForUndefinedKey(NSString)
NSObject.WillChange(NSKeyValueChange, NSIndexSet, NSString)
NSObject.WillChange(NSString, NSKeyValueSetMutationKind, NSSet)
NSObject.ClassHandle
NSObject.AccessibilityAttributedUserInputLabels
NSObject.AccessibilityRespondsToUserInteraction
NSObject.AccessibilityTextualContext
NSObject.AccessibilityUserInputLabels
NSObject.DebugDescription
NSObject.Description
NSObject.RetainCount
NSObject.ChangeIndexesKey
NSObject.ChangeKindKey
NSObject.ChangeNewKey
NSObject.ChangeNotificationIsPriorKey
NSObject.ChangeOldKey

Remarks

The app starts as the launch finishes; every window scene then gets IosWebViewSceneDelegate, which shows the page in the controller this makes (CreateViewController()), so a head's Info.plist names no scene delegate, only the scene manifest's default configuration.

Methods

CreateInitParams()

Creates the head's init params: the app's, and the two iOS facts the platform builds its device from.

protected abstract IosInitParams CreateInitParams()

Returns

IosInitParams

The init params.

CreateViewController()

Creates the page's controller for a scene that connects: portrait, unless the head allows rotation.

protected virtual IosWebViewController CreateViewController()

Returns

IosWebViewController

The controller.

FinishedLaunching(UIApplication, NSDictionary?)

Indicates that launching has finished and the app will shortly begin running.

public override bool FinishedLaunching(UIApplication application, NSDictionary? launchOptions)

Parameters

application UIApplication

Reference to the UIApplication that invoked this delegate method.

launchOptions NSDictionary

An NSDictionary with the launch options, can be null. Possible key values are UIApplication's LaunchOption static properties.

Returns

bool

To be added.

Remarks

To be added.

Exceptions

OverflowException

A duration in a built-in access key is out of range.

InvalidDataException

A built-in access key decodes to JSON null.

JsonException

A built-in access key holds no valid access key.

NotSupportedException

A built-in access key's version is not one the app reads.

FormatException

A built-in access key is no valid Base64, or an endpoint or a duration in it is not valid.

ArgumentException

The app's options name an empty app name.

ArgumentNullException

The app's options name no app name.

InvalidOperationException

The init params name no storage folder, or an App Group without a container; the platform has no local app data folder; or the app's storage has no parent folder.

GetConfiguration(UIApplication, UISceneSession, UISceneConnectionOptions)

public override UISceneConfiguration GetConfiguration(UIApplication application, UISceneSession connectingSceneSession, UISceneConnectionOptions options)

Parameters

application UIApplication
connectingSceneSession UISceneSession
options UISceneConnectionOptions

Returns

UISceneConfiguration

Remarks

Each scene gets IosWebViewSceneDelegate.