You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- Android ID changes untested yet #rb michael.kirzinger [FYI] michael.kirzinger,chris.babcock #ROBOMERGE-SOURCE: CL 6628745 via CL 6628746 via CL 6628747 via CL 6632036 #ROBOMERGE-BOT: (vundefined-6620334) [CL 6632203 by josh adams in Main branch]
40 lines
1.7 KiB
C++
40 lines
1.7 KiB
C++
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
|
|
|
|
/*=============================================================================
|
|
IOSLocalNotification.h: Unreal IOS local notification interface object.
|
|
=============================================================================*/
|
|
|
|
#pragma once
|
|
|
|
#include "LocalNotification.h"
|
|
#include "Logging/LogMacros.h"
|
|
#include "Delegates/Delegate.h"
|
|
|
|
DECLARE_LOG_CATEGORY_EXTERN(LogIOSLocalNotification, Log, All);
|
|
|
|
/**
|
|
* IOSLocalNotification implementation of an Unreal local notification service.
|
|
*/
|
|
class FIOSLocalNotificationService : public ILocalNotificationService
|
|
{
|
|
public:
|
|
FIOSLocalNotificationService();
|
|
virtual ~FIOSLocalNotificationService() {}
|
|
virtual void ClearAllLocalNotifications();
|
|
virtual int32 ScheduleLocalNotificationAtTime(const FDateTime& FireDateTime, bool LocalTime, const FText& Title, const FText& Body, const FText& Action, const FString& ActivationEvent);
|
|
virtual int32 ScheduleLocalNotificationBadgeAtTime(const FDateTime& FireDateTime, bool LocalTime, const FString& ActivationEvent);
|
|
virtual void GetLaunchNotification(bool& NotificationLaunchedApp, FString& ActivationEvent, int32& FireDate);
|
|
virtual void SetLaunchNotification(FString const& ActivationEvent, int32 FireDate);
|
|
virtual void CancelLocalNotification(const FString& ActivationEvent);
|
|
virtual void CancelLocalNotification(int NotificationId);
|
|
|
|
// Check if notifications are allowed if min iOS version is > 10
|
|
DECLARE_DELEGATE_OneParam(FAllowedNotifications, bool);
|
|
static void CheckAllowedNotifications(const FAllowedNotifications& AllowedNotificationsDelegate);
|
|
|
|
private:
|
|
bool AppLaunchedWithNotification;
|
|
FString LaunchNotificationActivationEvent;
|
|
int32 LaunchNotificationFireDate;
|
|
};
|