docs.unity.cn
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

    Name Description
    iOSNotificationCategory(string)

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

    iOSNotificationCategory(string, IEnumerable<iOSNotificationAction>)

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

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

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

    Properties

    Name Description
    Actions

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

    HiddenPreviewsBodyPlaceholder

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

    Id

    A unique identifier for this category.

    IntentIdentifiers

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

    Options

    Options for how to handle notifications of this type.

    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

    Methods

    Name Description
    AddAction(iOSNotificationAction)

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

    AddActions(IEnumerable<iOSNotificationAction>)

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

    AddIntentIdentifier(string)

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

    AddIntentIdentifiers(IEnumerable<string>)

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

    See Also

    CategoryIdentifier
    In This Article
    Back to top
    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