docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class iOSNotificationCategory

    Represents notification category. Notification categories need to be registered on application start to be useful. By adding actions to category, you make all notification sent with this category identifier actionable.

    Inheritance
    object
    iOSNotificationCategory
    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 iOSNotificationCategory

    Constructors

    iOSNotificationCategory(string)

    Create notification category. Category must be registered using iOSNotificationCenter.SetNotificationCategories.

    Declaration
    public iOSNotificationCategory(string id)
    Parameters
    Type Name Description
    string id

    A unique identifier for this category

    See Also
    CategoryIdentifier

    iOSNotificationCategory(string, IEnumerable<iOSNotificationAction>)

    Create notification category. Category must be registered using iOSNotificationCenter.SetNotificationCategories.

    Declaration
    public iOSNotificationCategory(string id, IEnumerable<iOSNotificationAction> actions)
    Parameters
    Type Name Description
    string id

    A unique identifier for this category

    IEnumerable<iOSNotificationAction> actions

    Add provided actions to this category

    See Also
    CategoryIdentifier

    iOSNotificationCategory(string, IEnumerable<iOSNotificationAction>, IEnumerable<string>)

    Create notification category. Category must be registered using iOSNotificationCenter.SetNotificationCategories.

    Declaration
    public iOSNotificationCategory(string id, IEnumerable<iOSNotificationAction> actions, IEnumerable<string> intentIdentifiers)
    Parameters
    Type Name Description
    string id

    A unique identifier for this category

    IEnumerable<iOSNotificationAction> actions

    Add provided actions to this category

    IEnumerable<string> intentIdentifiers

    Add provided intent identifiers to this category

    See Also
    CategoryIdentifier

    Properties

    Actions

    Get actions set for this category. For more info see iOSNotificationAction.

    Declaration
    public iOSNotificationAction[] Actions { get; }
    Property Value
    Type Description
    iOSNotificationAction[]
    See Also
    CategoryIdentifier

    HiddenPreviewsBodyPlaceholder

    The placeholder text to display when the system disables notification previews for the app. https://developer.apple.com/documentation/usernotifications/unnotificationcategory/2873736-hiddenpreviewsbodyplaceholder

    Declaration
    public string HiddenPreviewsBodyPlaceholder { get; set; }
    Property Value
    Type Description
    string
    See Also
    CategoryIdentifier

    Id

    A unique identifier for this category.

    Declaration
    public string Id { get; set; }
    Property Value
    Type Description
    string
    See Also
    CategoryIdentifier

    IntentIdentifiers

    Intent identifiers set for this category. https://developer.apple.com/documentation/usernotifications/unnotificationcategory/1649282-intentidentifiers

    Declaration
    public string[] IntentIdentifiers { get; }
    Property Value
    Type Description
    string[]
    See Also
    CategoryIdentifier

    Options

    Options for how to handle notifications of this type.

    Declaration
    public iOSNotificationCategoryOptions Options { get; set; }
    Property Value
    Type Description
    iOSNotificationCategoryOptions
    See Also
    CategoryIdentifier

    SummaryFormat

    A format string for the summary description used when the system groups the category’s notifications. https://developer.apple.com/documentation/usernotifications/unnotificationcategory/2963112-categorysummaryformat

    Declaration
    public string SummaryFormat { get; set; }
    Property Value
    Type Description
    string
    See Also
    CategoryIdentifier

    Methods

    AddAction(iOSNotificationAction)

    Add action to this category. Actions must be added prior to registering the category.

    Declaration
    public void AddAction(iOSNotificationAction action)
    Parameters
    Type Name Description
    iOSNotificationAction action

    Action to add

    See Also
    CategoryIdentifier

    AddActions(IEnumerable<iOSNotificationAction>)

    Add actions to this category. Actions must be added prior to registering the category.

    Declaration
    public void AddActions(IEnumerable<iOSNotificationAction> actions)
    Parameters
    Type Name Description
    IEnumerable<iOSNotificationAction> actions

    Actions to add

    See Also
    CategoryIdentifier

    AddIntentIdentifier(string)

    Add intent identifier to this category. Intent identifiers must be added prior to registering the category.

    Declaration
    public void AddIntentIdentifier(string identifier)
    Parameters
    Type Name Description
    string identifier

    Intent identifier to add

    See Also
    CategoryIdentifier

    AddIntentIdentifiers(IEnumerable<string>)

    Add intent identifier to this category. Intent identifiers must be added prior to registering the category.

    Declaration
    public void AddIntentIdentifiers(IEnumerable<string> identifiers)
    Parameters
    Type Name Description
    IEnumerable<string> identifiers

    Intent identifiers to add

    See Also
    CategoryIdentifier

    See Also

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