docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Struct iOSNotificationSettings

    iOSNotificationSettings contains the current authorization status and notification-related settings for your app. Your app must receive authorization to schedule notifications.

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

    Use this struct to determine what notification-related actions your app is allowed to perform by the user. This information should be used to enable, disable, or adjust your app's notification-related behaviors. The system enforces your app's settings by preventing denied interactions from occurring.

    Properties

    Name Description
    AlertSetting

    The authorization status for displaying alerts.

    AlertStyle

    The type of alert that the app may display when the device is unlocked.

    AuthorizationStatus

    When the value is set to Authorized your app is allowed to schedule and receive local and remote notifications.

    BadgeSetting

    The authorization status for badging your app’s icon.

    CarPlaySetting

    The setting that indicates whether your app’s notifications may be displayed in a CarPlay environment.

    LockScreenSetting

    The setting that indicates whether your app’s notifications appear onscreen when the device is locked.

    NotificationCenterSetting

    The setting that indicates whether your app’s notifications are displayed in Notification Center.

    ShowPreviewsSetting

    The setting that indicates whether the app shows a preview of the notification's content.

    SoundSetting

    The authorization status for playing sounds for incoming notifications.

    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