Поделиться через


UIApplicationDelegate_Extensions.HandleAction Метод

Определение

Перегрузки

HandleAction(IUIApplicationDelegate, UIApplication, String, NSDictionary, Action)

Сообщает приложению о настраиваемом действии, выполняемом на основе push-уведомления, и включает actionIdentifier значение, remoteNoticationInfo данные из уведомления и completionHandler сведения о том, что разработчик приложения будет выполнять после выполнения действия.

HandleAction(IUIApplicationDelegate, UIApplication, String, UILocalNotification, Action)

Сообщает приложению, что пользователь выбрал действие, определяемое значением actionIdentifier из оповещения UILocalNotification объекта, и выполняет completionHandler блок после завершения действия.

HandleAction(IUIApplicationDelegate, UIApplication, String, NSDictionary, NSDictionary, Action)

Сообщает приложению о настраиваемом действии, выполняемом на основе удаленного уведомления, и включает actionIdentifier значение, remoteNoticationInfo данные из уведомления и completionHandler сведения о том, что разработчик приложения будет выполнять после выполнения действия.

HandleAction(IUIApplicationDelegate, UIApplication, String, UILocalNotification, NSDictionary, Action)

Сообщает приложению о настраиваемом действии, выполняемом на основе локального уведомления, и включает actionIdentifier значение, responseInfo данные из уведомления и completionHandler сведения о том, что разработчик приложения будет выполнять после выполнения действия.

HandleAction(IUIApplicationDelegate, UIApplication, String, NSDictionary, Action)

Сообщает приложению о настраиваемом действии, выполняемом на основе push-уведомления, и включает actionIdentifier значение, remoteNoticationInfo данные из уведомления и completionHandler сведения о том, что разработчик приложения будет выполнять после выполнения действия.

[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'UNUserNotificationCenterDelegate.DidReceiveNotificationResponse' instead.")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static void HandleAction (this UIKit.IUIApplicationDelegate This, UIKit.UIApplication application, string actionIdentifier, Foundation.NSDictionary remoteNotificationInfo, Action completionHandler);
static member HandleAction : UIKit.IUIApplicationDelegate * UIKit.UIApplication * string * Foundation.NSDictionary * Action -> unit

Параметры

This
IUIApplicationDelegate

Экземпляр, с которым работает этот метод расширения.

application
UIApplication
actionIdentifier
String
remoteNotificationInfo
NSDictionary
completionHandler
Action
Атрибуты

Применяется к

HandleAction(IUIApplicationDelegate, UIApplication, String, UILocalNotification, Action)

Сообщает приложению, что пользователь выбрал действие, определяемое значением actionIdentifier из оповещения UILocalNotification объекта, и выполняет completionHandler блок после завершения действия.

[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'UNUserNotificationCenterDelegate.DidReceiveNotificationResponse' instead.")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static void HandleAction (this UIKit.IUIApplicationDelegate This, UIKit.UIApplication application, string actionIdentifier, UIKit.UILocalNotification localNotification, Action completionHandler);
static member HandleAction : UIKit.IUIApplicationDelegate * UIKit.UIApplication * string * UIKit.UILocalNotification * Action -> unit

Параметры

This
IUIApplicationDelegate

Экземпляр, с которым работает этот метод расширения.

application
UIApplication
actionIdentifier
String
localNotification
UILocalNotification
completionHandler
Action
Атрибуты

Применяется к

HandleAction(IUIApplicationDelegate, UIApplication, String, NSDictionary, NSDictionary, Action)

Сообщает приложению о настраиваемом действии, выполняемом на основе удаленного уведомления, и включает actionIdentifier значение, remoteNoticationInfo данные из уведомления и completionHandler сведения о том, что разработчик приложения будет выполнять после выполнения действия.

[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'UNUserNotificationCenterDelegate.DidReceiveNotificationResponse' instead.")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static void HandleAction (this UIKit.IUIApplicationDelegate This, UIKit.UIApplication application, string actionIdentifier, Foundation.NSDictionary remoteNotificationInfo, Foundation.NSDictionary responseInfo, Action completionHandler);
static member HandleAction : UIKit.IUIApplicationDelegate * UIKit.UIApplication * string * Foundation.NSDictionary * Foundation.NSDictionary * Action -> unit

Параметры

This
IUIApplicationDelegate

Экземпляр, с которым работает этот метод расширения.

application
UIApplication
actionIdentifier
String
remoteNotificationInfo
NSDictionary
responseInfo
NSDictionary
completionHandler
Action
Атрибуты

Применяется к

HandleAction(IUIApplicationDelegate, UIApplication, String, UILocalNotification, NSDictionary, Action)

Сообщает приложению о настраиваемом действии, выполняемом на основе локального уведомления, и включает actionIdentifier значение, responseInfo данные из уведомления и completionHandler сведения о том, что разработчик приложения будет выполнять после выполнения действия.

[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'UNUserNotificationCenterDelegate.DidReceiveNotificationResponse' instead.")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static void HandleAction (this UIKit.IUIApplicationDelegate This, UIKit.UIApplication application, string actionIdentifier, UIKit.UILocalNotification localNotification, Foundation.NSDictionary responseInfo, Action completionHandler);
static member HandleAction : UIKit.IUIApplicationDelegate * UIKit.UIApplication * string * UIKit.UILocalNotification * Foundation.NSDictionary * Action -> unit

Параметры

This
IUIApplicationDelegate

Экземпляр, с которым работает этот метод расширения.

application
UIApplication
actionIdentifier
String
localNotification
UILocalNotification
responseInfo
NSDictionary
completionHandler
Action
Атрибуты

Применяется к