docs.unity3d.com
Search Results for

    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
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Notifications.iOS
    Assembly: solution.dll
    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)

    See Also
    iOSNotificationCategory
    GetLastRespondedNotificationAction()

    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

    See Also
    iOSNotificationCategory
    GetLastRespondedNotificationAction()

    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
    See Also
    iOSNotificationCategory
    GetLastRespondedNotificationAction()

    Options

    Options for the action. Can be a combination of given flags. Refer to Apple documentation for UNNotificationActionOptions for exact meanings. https://developer.apple.com/documentation/usernotifications/unnotificationactionoptions

    Declaration
    public iOSNotificationActionOptions Options { get; set; }
    Property Value
    Type Description
    iOSNotificationActionOptions
    See Also
    iOSNotificationCategory
    GetLastRespondedNotificationAction()

    SystemImageName

    Set the icon for action using system symbol image name. https://developer.apple.com/documentation/usernotifications/unnotificationactionicon/3747241-iconwithsystemimagename?language=objc

    Declaration
    public string SystemImageName { get; set; }
    Property Value
    Type Description
    string
    See Also
    iOSNotificationCategory
    GetLastRespondedNotificationAction()

    TemplateImageName

    Set the icon for action using image from app's bundle. https://developer.apple.com/documentation/usernotifications/unnotificationactionicon/3747242-iconwithtemplateimagename?language=objc

    Declaration
    public string TemplateImageName { get; set; }
    Property Value
    Type Description
    string
    See Also
    iOSNotificationCategory
    GetLastRespondedNotificationAction()

    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()

    See Also

    iOSNotificationCategory
    GetLastRespondedNotificationAction()
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)