Add local notification displayable in the foreground (AddLocalNotificationAtFront) [MSDK only]
[MSD only] Adds a local notification displayable in the foreground.
Supported platforms
- 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
| Parameters | Type | Description |
|---|---|---|
| localNotification | GUALocalNotification | Reference data structure GUALocalNotification |
| Parameters | Type | Description |
|---|---|---|
| gua_local_notification | GUALocalNotification | Reference data structure GUALocalNotification |
Callback Handling
The callback processing interface is GUAPushBaseResultObserver.The callback data structure is GUABaseResult.
- Unity
- Unreal Engine
The callback event is PushBaseResultEvents. Callback ID is GUA_PUSH_ADD_LOCAL_NOTIFICATION.
The callback event is OnPushOptNotify. Callback ID is kMethodIDPushAddLocalNotification.
Code Example
- 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);