docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method ScheduleNotification

    ScheduleNotification<T>(Notification, T)

    Schedule notification to be shown in the future.

    Declaration
    public static int ScheduleNotification<T>(Notification notification, T schedule) where T : NotificationSchedule
    Parameters
    Type Name Description
    Notification notification

    Notification to send.

    T schedule

    Schedule, specifying, when notification should be shown.

    Returns
    Type Description
    int

    Notification identifier.

    Type Parameters
    Name Description
    T

    Type of the schedule, usually deduced from actually passed one.

    ScheduleNotification<T>(Notification, string, T)

    Schedule notification to be shown in the future. Allows to explicitly specify the category to send notification to. On Android it is notification channel. Channel or category has to be created manually using AndroidNotificationCenter and iOSNotificationCenter respectively.

    Declaration
    public static int ScheduleNotification<T>(Notification notification, string category, T schedule) where T : NotificationSchedule
    Parameters
    Type Name Description
    Notification notification

    Notification to send.

    string category

    Identifier for iOS category or Android channel.

    T schedule

    Schedule, specifying, when notification should be shown.

    Returns
    Type Description
    int

    Notification identifier.

    Type Parameters
    Name Description
    T

    Type of the schedule, usually deduced from actually passed one.

    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