docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Struct NotificationCenterArgs

    Initialization arguments for NotificationCenter. Recommended to use Default to retrieve recommened default values and then alter it. It is required to manually set AndroidChannelId.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.Notifications
    Assembly: solution.dll
    Syntax
    public struct NotificationCenterArgs

    Properties

    Name Description
    AndroidChannelDescription

    A user visible description for the channel. Optional, Android only. Leave null, if you wish to create channel manually. Set this to channel description for it to be created automatically during initialization. If this is set, then AndroidChannelName must also be set.

    AndroidChannelId

    A custom non-empty string to identify notification channel. Required, Android only. All notifications will be sent to this channel. Channel is created automatically during initialization if AndroidChannelName and AndroidChannelDescription are both set. If name and description are left null, channel with given identifier has to be created manually (for example using AndroidNotificationCenter.RegisterNotificationChannel(AndroidNotificationChannel)).

    AndroidChannelName

    A user visible name for notification channel. Optional, Android only. Leave null, if you wish to create channel manually. Set this to channel name for it to be created automatically during initialization. If this is set, then AndroidChannelDescription must also be set.

    Default

    Returns recommended default values for all settings.

    PresentationOptions

    Options specifying how notifications should be presented to user when they arrive. On Android these only have effect if notification channel is created uppon initialization (all channel related properties are set). On iOS these only have effect if permission to post notification is later requested using RequestPermission()

    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