engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
ILocalNotificationService类 参考abstract

Interface for local notification modules 更多...

#include <LocalNotification.h>

+ 类 ILocalNotificationService 继承关系图:

Public 成员函数

virtual void CancelLocalNotification (const FString &ActivationEvent)=0
 Cancel a local notification given the ActivationEvent 更多...
 
virtual void CancelLocalNotification (int32 NotificationId)=0
 Cancel a local notification given the ActivationEvent 更多...
 
virtual void ClearAllLocalNotifications ()=0
 Clear all pending local notifications. 更多...
 
virtual void GetLaunchNotification (bool &NotificationLaunchedApp, FString &ActivationEvent, int32 &FireDate)=0
 Get the local notification that was used to launch the app 更多...
 
virtual int32 ScheduleLocalNotificationAtTime (const FDateTime &FireDateTime, bool LocalTime, const FText &Title, const FText &Body, const FText &Action, const FString &ActivationEvent)=0
 Schedule a local notification at a specific time, inLocalTime specifies the current local time or if UTC time should be used 更多...
 
virtual int32 ScheduleLocalNotificationBadgeAtTime (const FDateTime &FireDateTime, bool LocalTime, const FString &ActivationEvent)=0
 Schedule a local notification badge at a specific time, inLocalTime specifies the current local time or if UTC time should be used 更多...
 
virtual void SetLaunchNotification (FString const &ActivationEvent, int32 FireDate)=0
 Set the local notification that was used to launch the app 更多...
 

详细描述

Interface for local notification modules

成员函数说明

◆ CancelLocalNotification() [1/2]

virtual void ILocalNotificationService::CancelLocalNotification ( const FString &  ActivationEvent)
pure virtual

Cancel a local notification given the ActivationEvent

参数
ActivationEventThe string passed into the Schedule call for the notification to be cancelled

在 FAndroidLocalNotificationService , 以及 FIOSLocalNotificationService 内被实现.

◆ CancelLocalNotification() [2/2]

virtual void ILocalNotificationService::CancelLocalNotification ( int32  NotificationId)
pure virtual

Cancel a local notification given the ActivationEvent

参数
NotificationIdThe Id returned from ScheduleLocalNotificationAtTime*

◆ ClearAllLocalNotifications()

virtual void ILocalNotificationService::ClearAllLocalNotifications ( )
pure virtual

Clear all pending local notifications.

Typically this will be done before scheduling new notifications when going into the background

在 FAndroidLocalNotificationService , 以及 FIOSLocalNotificationService 内被实现.

◆ GetLaunchNotification()

virtual void ILocalNotificationService::GetLaunchNotification ( bool &  NotificationLaunchedApp,
FString &  ActivationEvent,
int32 &  FireDate 
)
pure virtual

Get the local notification that was used to launch the app

参数
NotificationLaunchedAppReturn true if a notification was used to launch the app
ActivationEventReturns the name of the ActivationEvent if a notification was used to launch the app
FireDateReturns the time the notification was activated

在 FAndroidLocalNotificationService , 以及 FIOSLocalNotificationService 内被实现.

◆ ScheduleLocalNotificationAtTime()

virtual int32 ILocalNotificationService::ScheduleLocalNotificationAtTime ( const FDateTime &  FireDateTime,
bool  LocalTime,
const FText &  Title,
const FText &  Body,
const FText &  Action,
const FString &  ActivationEvent 
)
pure virtual

Schedule a local notification at a specific time, inLocalTime specifies the current local time or if UTC time should be used

参数
FireDateTimeThe time at which to fire the local notification
LocalTimeIf true the provided time is in the local timezone, if false it is in UTC
TitleThe title of the notification
BodyThe more detailed description of the notification
ActionThe text to be displayed on the slider controller
ActivationEventA string that is passed in the delegate callback when the app is brought into the foreground from the user activating the notification
返回
A unique identifier used to cancel the notification

在 FAndroidLocalNotificationService , 以及 FIOSLocalNotificationService 内被实现.

◆ ScheduleLocalNotificationBadgeAtTime()

virtual int32 ILocalNotificationService::ScheduleLocalNotificationBadgeAtTime ( const FDateTime &  FireDateTime,
bool  LocalTime,
const FString &  ActivationEvent 
)
pure virtual

Schedule a local notification badge at a specific time, inLocalTime specifies the current local time or if UTC time should be used

参数
FireDateTimeThe time at which to fire the local notification
LocalTimeIf true the provided time is in the local timezone, if false it is in UTC
ActivationEventA string that is passed in the delegate callback when the app is brought into the foreground from the user activating the notification
返回
A unique identifier used to cancel the notification

在 FAndroidLocalNotificationService , 以及 FIOSLocalNotificationService 内被实现.

◆ SetLaunchNotification()

virtual void ILocalNotificationService::SetLaunchNotification ( FString const &  ActivationEvent,
int32  FireDate 
)
pure virtual

Set the local notification that was used to launch the app

参数
ActivationEventReturns the name of the ActivationEvent if a notification was used to launch the app
FireDateReturns the time the notification was activated

在 FAndroidLocalNotificationService , 以及 FIOSLocalNotificationService 内被实现.


该类的文档由以下文件生成: