Files
UnrealEngineUWP/Engine/Source/Runtime/IOS/IOSLocalNotification/Public/IOSLocalNotification.h
ryan durand 0f0464a30e Updating copyright for Engine Runtime.
#rnx
#rb none


#ROBOMERGE-OWNER: ryan.durand
#ROBOMERGE-AUTHOR: ryan.durand
#ROBOMERGE-SOURCE: CL 10869210 via CL 10869511 via CL 10869900
#ROBOMERGE-BOT: (v613-10869866)

[CL 10870549 by ryan durand in Main branch]
2019-12-26 14:45:42 -05:00

40 lines
1.7 KiB
C++

// Copyright 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;
};