docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Constructor AndroidNotification

    AndroidNotification(string, string, DateTime)

    Create a notification struct with all optional fields set to default values.

    Declaration
    public AndroidNotification(string title, string text, DateTime fireTime)
    Parameters
    Type Name Description
    string title

    Notification title

    string text

    Text to show on notification

    DateTime fireTime

    Date and time when to show, can be DateTime.Now to show right away

    AndroidNotification(string, string, DateTime, TimeSpan)

    Create a repeatable notification struct with all optional fields set to default values.

    Declaration
    public AndroidNotification(string title, string text, DateTime fireTime, TimeSpan repeatInterval)
    Parameters
    Type Name Description
    string title

    Notification title

    string text

    Text to show on notification

    DateTime fireTime

    Date and time when to show, can be DateTime.Now to show right away

    TimeSpan repeatInterval

    Makes notification repeatable with this time interval

    Remarks

    There is a minimum period of 1 minute for repeating notifications.

    AndroidNotification(string, string, DateTime, TimeSpan, string)

    Create a notification struct with a custom small icon and all optional fields set to default values.

    Declaration
    public AndroidNotification(string title, string text, DateTime fireTime, TimeSpan repeatInterval, string smallIcon)
    Parameters
    Type Name Description
    string title

    Notification title

    string text

    Text to show on notification

    DateTime fireTime

    Date and time when to show, can be DateTime.Now to show right away

    TimeSpan repeatInterval

    Makes notification repeatable with this time interval

    string smallIcon

    Name of the small icon to be shown on notification

    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