CPApplicationDelegate Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The application delegate for CarPlay applications.
[Foundation.Model]
[Foundation.Protocol]
[Foundation.Register("Microsoft_iOS__CarPlay_CPApplicationDelegate", false)]
public abstract class CPApplicationDelegate : Foundation.NSObject, CarPlay.ICPApplicationDelegate, IDisposable
[<Foundation.Model>]
[<Foundation.Protocol>]
[<Foundation.Register("Microsoft_iOS__CarPlay_CPApplicationDelegate", false)>]
type CPApplicationDelegate = class
inherit NSObject
interface ICPApplicationDelegate
interface INativeObject
interface IDisposable
interface IUIApplicationDelegate
- Inheritance
- Attributes
- Implements
Constructors
| Name | Description |
|---|---|
| CPApplicationDelegate() |
Creates a new CPApplicationDelegate with default values. |
| CPApplicationDelegate(NativeHandle) |
A constructor used when creating managed representations of unmanaged objects. Called by the runtime. |
| CPApplicationDelegate(NSObjectFlag) |
Constructor to call on derived classes to skip initialization and merely allocate the object. |
Properties
| Name | Description |
|---|---|
| AccessibilityAttributedUserInputLabels | (Inherited from NSObject) |
| AccessibilityRespondsToUserInteraction | (Inherited from NSObject) |
| AccessibilityTextualContext | (Inherited from NSObject) |
| AccessibilityUserInputLabels | (Inherited from NSObject) |
| Class | (Inherited from NSObject) |
| ClassHandle |
The Objective-C class handle for this class. (Inherited from NSObject) |
| DebugDescription | (Inherited from NSObject) |
| Description | (Inherited from NSObject) |
| Handle |
Handle (pointer) to the unmanaged object representation. (Inherited from NSObject) |
| IsDirectBinding | (Inherited from NSObject) |
| IsProxy | (Inherited from NSObject) |
| RetainCount | (Inherited from NSObject) |
| Self | (Inherited from NSObject) |
| Superclass | (Inherited from NSObject) |
| SuperHandle |
Handle used to represent the methods in the base class for this NSObject. (Inherited from NSObject) |
| Window |
Gets or sets the UIWindow for the application. |
| Zone | (Inherited from NSObject) |
Methods
| Name | Description |
|---|---|
| AccessibilityPerformMagicTap() |
Performs the most important action of the app. Often, this is toggling the most important state of the app. |
| AddObserver(NSObject, NSString, NSKeyValueObservingOptions, IntPtr) | (Inherited from NSObject) |
| AddObserver(NSObject, String, NSKeyValueObservingOptions, IntPtr) | (Inherited from NSObject) |
| AddObserver(NSString, NSKeyValueObservingOptions, Action<NSObservedChange>) |
Registers an object for being observed externally using an arbitrary method. (Inherited from NSObject) |
| AddObserver(String, NSKeyValueObservingOptions, Action<NSObservedChange>) |
Registers an object for being observed externally using an arbitrary method. (Inherited from NSObject) |
| ApplicationSignificantTimeChange(UIApplication) |
Indicates a significant change in time, such as midnight, change to Daylight Savings, or a shift in timezone. |
| AwakeFromNib() | (Inherited from NSObject) |
| BeginInvokeOnMainThread(Action) | (Inherited from NSObject) |
| BeginInvokeOnMainThread(Selector, NSObject) |
Invokes asynchrously the specified code on the main UI thread. (Inherited from NSObject) |
| ChangedStatusBarFrame(UIApplication, CGRect) |
Indicates that the frame of the status bar has changed. |
| ConformsToProtocol(NativeHandle) | (Inherited from NSObject) |
| ContinueUserActivity(UIApplication, NSUserActivity, UIApplicationRestorationHandler) |
Informs the app that there is data associated with continuing a task specified as a NSUserActivity object, and then returns whether the app continued the activity. |
| Copy() | (Inherited from NSObject) |
| DangerousAutorelease() |
Calls the 'autorelease' selector on this object. (Inherited from NSObject) |
| DangerousRelease() |
Calls the 'release' selector on this object. (Inherited from NSObject) |
| DangerousRetain() |
Calls the 'retain' selector on this object. (Inherited from NSObject) |
| DidChange(NSKeyValueChange, NSIndexSet, NSString) | (Inherited from NSObject) |
| DidChange(NSString, NSKeyValueSetMutationKind, NSSet) | (Inherited from NSObject) |
| DidChangeStatusBarOrientation(UIApplication, UIInterfaceOrientation) |
Indicates that the orientation of the status bar has changed. |
| DidChangeValue(String) | (Inherited from NSObject) |
| DidConnectCarInterfaceController(UIApplication, CPInterfaceController, CPWindow) | |
| DidDecodeRestorableState(UIApplication, NSCoder) |
Indicates that the app should restore highest-level state. |
| DidDiscardSceneSessions(UIApplication, NSSet<UISceneSession>) | |
| DidDisconnectCarInterfaceController(UIApplication, CPInterfaceController, CPWindow) | |
| DidEnterBackground(UIApplication) |
Indicates that the application has entered the background. |
| DidFailToContinueUserActivity(UIApplication, String, NSError) |
Informs the app that the activity of the |
| DidReceiveRemoteNotification(UIApplication, NSDictionary, Action<UIBackgroundFetchResult>) |
Indicates that the app received a remote notification. |
| DidRegisterUserNotificationSettings(UIApplication, UIUserNotificationSettings) |
Developers should not use this deprecated method. Developers should use 'UNUserNotificationCenter.RequestAuthorization' instead. |
| DidSelectManeuver(UIApplication, CPManeuver) |
Method that is called when the user selects a maneuver. |
| DidSelectNavigationAlert(UIApplication, CPNavigationAlert) |
Method that is called when the user selects a navigation alert. |
| Dispose() |
Releases the resources used by the NSObject object. (Inherited from NSObject) |
| Dispose(Boolean) |
Releases the resources used by the NSObject object. (Inherited from NSObject) |
| DoesNotRecognizeSelector(Selector) | (Inherited from NSObject) |
| Equals(NSObject) | (Inherited from NSObject) |
| Equals(Object) | (Inherited from NSObject) |
| FailedToRegisterForRemoteNotifications(UIApplication, NSError) |
Indicates that Apple Push Service did not successfully compete the registration process. |
| FinishedLaunching(UIApplication, NSDictionary) |
Indicates that launching has finished and the app will shortly begin running. |
| FinishedLaunching(UIApplication) |
The application has finished launching. |
| GetConfiguration(UIApplication, UISceneSession, UISceneConnectionOptions) | |
| GetDictionaryOfValuesFromKeys(NSString[]) | (Inherited from NSObject) |
| GetHandlerForIntent(UIApplication, INIntent) | |
| GetHashCode() |
Generates a hash code for the current instance. (Inherited from NSObject) |
| GetMethodForSelector(Selector) | (Inherited from NSObject) |
| GetNativeHash() | (Inherited from NSObject) |
| GetSupportedInterfaceOrientations(UIApplication, UIWindow) |
The interface orientations supported by the app. |
| GetViewController(UIApplication, String[], NSCoder) |
Retrieves the UIViewController identified by the last value in the restorationIdentifierComponents parameter. |
| HandleAction(UIApplication, String, NSDictionary, Action) |
Informs the app of a custom action to perform based on a push notification, and includes the |
| HandleAction(UIApplication, String, NSDictionary, NSDictionary, Action) |
Informs the app of a custom action to perform based on a remote notification, and includes the |
| HandleAction(UIApplication, String, UILocalNotification, Action) |
Informs the app that the user selected an action identified by the |
| HandleAction(UIApplication, String, UILocalNotification, NSDictionary, Action) |
Informs the app of a custom action to perform based on a local notification, and includes the |
| HandleEventsForBackgroundUrl(UIApplication, String, Action) |
Raised when events relating to a background NSUrlSession are waiting to be processed. |
| HandleIntent(UIApplication, INIntent, Action<INIntentResponse>) |
The system is requesting that the application handle the specified |
| HandleOpenURL(UIApplication, NSUrl) |
Developers should use OpenUrl(UIApplication, NSUrl, String, NSObject) rather than this deprecated method. |
| HandleWatchKitExtensionRequest(UIApplication, NSDictionary, Action<NSDictionary>) |
A watchkit extension has made a request. |
| Init() | (Inherited from NSObject) |
| InitializeHandle(NativeHandle, String) | (Inherited from NSObject) |
| InitializeHandle(NativeHandle) | (Inherited from NSObject) |
| Invoke(Action, Double) | (Inherited from NSObject) |
| Invoke(Action, TimeSpan) | (Inherited from NSObject) |
| InvokeOnMainThread(Action) | (Inherited from NSObject) |
| InvokeOnMainThread(Selector, NSObject) |
Invokes synchrously the specified code on the main UI thread. (Inherited from NSObject) |
| IsEqual(NSObject) | (Inherited from NSObject) |
| IsKindOfClass(Class) | (Inherited from NSObject) |
| IsMemberOfClass(Class) | (Inherited from NSObject) |
| MarkDirty() |
Promotes a regular peer object (IsDirectBinding is true) into a toggleref object. (Inherited from NSObject) |
| MutableCopy() | (Inherited from NSObject) |
| ObserveValue(NSString, NSObject, NSDictionary, IntPtr) | (Inherited from NSObject) |
| OnActivated(UIApplication) |
The app has moved from the inactive to actie state. |
| OnResignActivation(UIApplication) |
The app is about to move from the active state to the inactive state. |
| OpenUrl(UIApplication, NSUrl, NSDictionary) |
Indicates that the application should open the specified |
| OpenUrl(UIApplication, NSUrl, String, NSObject) |
Loads a resource from the specified URL. |
| OpenUrl(UIApplication, NSUrl, UIApplicationOpenUrlOptions) |
Indicates that the application should open the specified |
| PerformActionForShortcutItem(UIApplication, UIApplicationShortcutItem, UIOperationHandler) |
Called by the system when the user initiates a Home screen quick action, unless the interaction was handled in WillFinishLaunching(UIApplication, NSDictionary) or FinishedLaunching(UIApplication). |
| PerformFetch(UIApplication, Action<UIBackgroundFetchResult>) |
Indicates that the application can begin a fetch operation if it has data to download. |
| PerformSelector(Selector, NSObject, Double, NSString[]) | (Inherited from NSObject) |
| PerformSelector(Selector, NSObject, Double) | (Inherited from NSObject) |
| PerformSelector(Selector, NSObject, NSObject) | (Inherited from NSObject) |
| PerformSelector(Selector, NSObject) | (Inherited from NSObject) |
| PerformSelector(Selector, NSThread, NSObject, Boolean, NSString[]) | (Inherited from NSObject) |
| PerformSelector(Selector, NSThread, NSObject, Boolean) | (Inherited from NSObject) |
| PerformSelector(Selector) | (Inherited from NSObject) |
| PrepareForInterfaceBuilder() | (Inherited from NSObject) |
| ProtectedDataDidBecomeAvailable(UIApplication) |
Protected files are now available. |
| ProtectedDataWillBecomeUnavailable(UIApplication) |
Indicates that protected files are about to be encrypted and unavailable for reading. |
| ReceivedLocalNotification(UIApplication, UILocalNotification) |
Indicates that the app received a local notification. |
| ReceivedRemoteNotification(UIApplication, NSDictionary) |
Indicates that the app received a remote notification. |
| ReceiveMemoryWarning(UIApplication) |
The app has received a low-memory warning from the system. |
| RegisteredForRemoteNotifications(UIApplication, NSData) |
Indicates that the device successfully registered with Apple Push Service. |
| RemoveObserver(NSObject, NSString, IntPtr) | (Inherited from NSObject) |
| RemoveObserver(NSObject, NSString) | (Inherited from NSObject) |
| RemoveObserver(NSObject, String, IntPtr) | (Inherited from NSObject) |
| RemoveObserver(NSObject, String) | (Inherited from NSObject) |
| RespondsToSelector(Selector) | (Inherited from NSObject) |
| SetNilValueForKey(NSString) | (Inherited from NSObject) |
| SetValueForKey(NSObject, NSString) | (Inherited from NSObject) |
| SetValueForKeyPath(NativeHandle, NSString) | (Inherited from NSObject) |
| SetValueForKeyPath(NSObject, NSString) | (Inherited from NSObject) |
| SetValueForUndefinedKey(NSObject, NSString) | (Inherited from NSObject) |
| SetValuesForKeysWithDictionary(NSDictionary) | (Inherited from NSObject) |
| ShouldAllowExtensionPointIdentifier(UIApplication, NSString) |
Requests permission from the app to run app extensions based on the extension point identified by |
| ShouldAutomaticallyLocalizeKeyCommands(UIApplication) | |
| ShouldRequestHealthAuthorization(UIApplication) |
The system calls this method when the developer's app should ask the user for access to HealthKit data. |
| ShouldRestoreApplicationState(UIApplication, NSCoder) |
Whether the application should restore saved state information. |
| ShouldRestoreSecureApplicationState(UIApplication, NSCoder) | |
| ShouldSaveApplicationState(UIApplication, NSCoder) |
Whether the application should save application state information. |
| ShouldSaveSecureApplicationState(UIApplication, NSCoder) | |
| ToString() |
Returns a string representation of the value of the current instance. (Inherited from NSObject) |
| UserActivityUpdated(UIApplication, NSUserActivity) |
Informs the app that the NSUserActivity object in |
| UserDidAcceptCloudKitShare(UIApplication, CKShareMetadata) | |
| ValueForKey(NSString) | (Inherited from NSObject) |
| ValueForKeyPath(NSString) | (Inherited from NSObject) |
| ValueForUndefinedKey(NSString) | (Inherited from NSObject) |
| WillChange(NSKeyValueChange, NSIndexSet, NSString) | (Inherited from NSObject) |
| WillChange(NSString, NSKeyValueSetMutationKind, NSSet) | (Inherited from NSObject) |
| WillChangeStatusBarFrame(UIApplication, CGRect) |
Indicates that the frame of the status bar is about to change. |
| WillChangeStatusBarOrientation(UIApplication, UIInterfaceOrientation, Double) |
Indicates that the orientation of the status bar is about to change. |
| WillChangeValue(String) | (Inherited from NSObject) |
| WillContinueUserActivity(UIApplication, String) |
Informs the app that the user is attempting to continue a |
| WillEncodeRestorableState(UIApplication, NSCoder) |
Indicates that the app is about to store application state data. |
| WillEnterForeground(UIApplication) |
Indicates that the application is about to enter the foreground. |
| WillFinishLaunching(UIApplication, NSDictionary) |
Indicates that the app is about to finish its launching procedures. |
| WillTerminate(UIApplication) |
Indicates that the app is about to terminate. |