docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Class NotificationSettings.AndroidSettings

    Class used to access Android-specific notification settings.

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

    Properties

    Name Description
    CustomActivityString

    The full class name of the activity that you wish to be assigned to the notification.

    ExactSchedulingOption

    A set of flags indicating whether to use exact scheduling and add supporting permissions.

    RescheduleOnDeviceRestart

    By default AndroidSettings removes all scheduled notifications when the device is restarted. Enable this to automatically reschedule all non expired notifications when the device is turned back on.

    UseCustomActivity

    Enable this if you want to override the activity which will opened when the user click on the notification. By default activity assigned to com.unity3d.player.UnityPlayer.currentActivity will be used.

    Methods

    Name Description
    AddDrawableResource(string, Texture2D, NotificationIconType)

    Add image to notification settings.

    ClearDrawableResources()

    Remove all images from notification settings.

    RemoveDrawableResource(int)

    Remove icon at given index from notification settings.

    RemoveDrawableResource(string)

    Remove icon with given identifier from notification settings.

    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