docs.unity3d.com
    Show / Hide Table of Contents

    Class iOSNotificationAction

    Represents action for an actionable notification. Actions are supposed to be added to notification categories, which are then registered prior to sending notifications. User can choose to tap a notification or one of associated actions. Application gets feedback of the choice.

    Inheritance
    Object
    iOSNotificationAction
    iOSTextInputNotificationAction
    Namespace: Unity.Notifications.iOS
    Syntax
    public class iOSNotificationAction

    Constructors

    iOSNotificationAction(String, String)

    Creates new action.

    Declaration
    public iOSNotificationAction(string id, string title)
    Parameters
    Type Name Description
    String id

    Unique identifier for this action

    String title

    Title for the action (and button label)

    iOSNotificationAction(String, String, iOSNotificationActionOptions)

    Creates new action.

    Declaration
    public iOSNotificationAction(string id, string title, iOSNotificationActionOptions options)
    Parameters
    Type Name Description
    String id

    Unique identifier for this action

    String title

    Title for the action (and button label)

    iOSNotificationActionOptions options

    Options for the action

    Properties

    Id

    An identifier for this action. Each action within an application unique must have unique ID. This ID will be returned by iOSNotificationCenter.GetLastRespondedNotificationAction if user chooses this action.

    Declaration
    public string Id { get; set; }
    Property Value
    Type Description
    String

    Options

    Options for the action. Can be a combination of given flags. Refer to Apple documentation for UNNotificationActionOptions for exact meanings.

    Declaration
    public iOSNotificationActionOptions Options { get; set; }
    Property Value
    Type Description
    iOSNotificationActionOptions

    Title

    Title for the action. This will be the title of the button that appears below the notification.

    Declaration
    public string Title { get; set; }
    Property Value
    Type Description
    String

    See Also

    iOSNotificationCategory
    GetLastRespondedNotificationAction()
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023