docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PermissionRequest

    A class to request permission to post notifications. Before Android 13 (API 33) it is not required and Status will become Allowed immediately. May succeed or fail immediately. Users response is saved to PlayerPrefs. Respects users wish to not be asked again.

    Inheritance
    object
    PermissionRequest
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Notifications.Android
    Assembly: solution.dll
    Syntax
    public class PermissionRequest

    Constructors

    PermissionRequest()

    Create a new request. Will show user a dialog asking for permission if that is required to post notifications and user hasn't permanently denied it already.

    Declaration
    public PermissionRequest()
    See Also
    UserPermissionToPost
    SETTING_POST_NOTIFICATIONS_PERMISSION

    Properties

    Status

    The status of this request. Value other than RequestPending means request has completed.

    Declaration
    public PermissionStatus Status { get; set; }
    Property Value
    Type Description
    PermissionStatus
    See Also
    UserPermissionToPost
    SETTING_POST_NOTIFICATIONS_PERMISSION

    See Also

    UserPermissionToPost
    SETTING_POST_NOTIFICATIONS_PERMISSION
    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)