AddLocalNotificationAtFront [MSDK Only]
[MSDK Only] Add a local push that can be displayed in the front end.
Supported Platform
- Unity
- Unreal Engine
Supports
iOS
platform.Supports
iOS
platform.Function Definition
- Unity
- Unreal Engine
void AddLocalNotificationAtFront (GUALocalNotification localNotification);
static void AddLocalNotificationAtFront(GUALocalNotification &gua_local_notification);
Input Parameters
- Unity
- Unreal Engine
Parameter | Type | Description |
---|---|---|
localNotification | GUALocalNotification | See enumeration structure GUALocalNotification |
Parameter | Type | Description |
---|---|---|
gua_local_notification | GUALocalNotification | See enumeration structure GUALocalNotification |
Callback Processing
The callback processing API is GUAPushBaseResultObserver. The callback data structure is GUABaseResult.
- Unity
- Unreal Engine
The callback event is PushBaseResultEvents.
The callback methodID is GUA_PUSH_ADD_LOCAL_NOTIFICATION
.
The callback event is OnPushOptNotify.
The callback methodID is kMethodIDPushAddLocalNotification
.
Code Sample
- Unity
- Unreal Engine
GUALocalNotification localNotification = new GUALocalNotification();
// TODO: Set localNotification
UnionAdapterAPI.GetPushService().AddLocalNotificationAtFront(GUALocalNotification localNotification);
GUALocalNotification gua_local_notification;
// TODO: // Set gua_local_notification
GUA_NAMESPACE::GUAPushService::AddLocalNotificationAtFront(GUALocalNotification gua_local_notification);