-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathUAUnityPlugin.h
More file actions
109 lines (80 loc) · 3.21 KB
/
UAUnityPlugin.h
File metadata and controls
109 lines (80 loc) · 3.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
/* Copyright Airship and Contributors */
#import <Foundation/Foundation.h>
#if __has_include("UAirship.h")
#import "AirshipLib.h"
#else
@import AirshipKit;
#endif
extern void UnitySendMessage(const char *, const char *, const char *);
#pragma mark -
#pragma mark Listener
void UAUnityPlugin_setListener(const char* listener);
#pragma mark -
#pragma mark Deep Links
const char* UAUnityPlugin_getDeepLink(bool clear);
#pragma mark -
#pragma mark UA Push Functions
const char* UAUnityPlugin_getIncomingPush(bool clear);
bool UAUnityPlugin_getUserNotificationsEnabled();
void UAUnityPlugin_setUserNotificationsEnabled(bool enabled);
const char* UAUnityPlugin_getTags();
void UAUnityPlugin_addTag(const char* tag);
void UAUnityPlugin_removeTag(const char* tag);
const char* UAUnityPlugin_getChannelId();
#pragma mark -
#pragma mark Custom Events
void UAUnityPlugin_addCustomEvent(const char *customEvent);
#pragma mark -
#pragma mark Associated Identifier
void UAUnityPlugin_associateIdentifier(const char *key, const char *identifier);
#pragma mark -
#pragma mark Named User
void UAUnityPlugin_setNamedUserID(const char *namedUserID);
const char* UAUnityPlugin_getNamedUserID();
#pragma mark -
#pragma mark Message Center
void UAUnityPlugin_displayMessageCenter();
void UAUnityPlugin_displayInboxMessage(const char *messageId);
void UAUnityPlugin_refreshInbox();
const char* UAUnityPlugin_getInboxMessages();
void UAUnityPlugin_markInboxMessageRead(const char *messageID);
void UAUnityPlugin_deleteInboxMessage(const char *messageID);
void UAUnityPlugin_setAutoLaunchDefaultMessageCenter(bool enabled);
int UAUnityPlugin_getMessageCenterUnreadCount();
int UAUnityPlugin_getMessageCenterCount();
#pragma mark -
#pragma mark In-app
double UAUnityPlugin_getInAppAutomationDisplayInterval();
void UAUnityPlugin_setInAppAutomationDisplayInterval(double value);
bool UAUnityPlugin_isInAppAutomationPaused();
void UAUnityPlugin_setInAppAutomationPaused(bool paused);
#pragma mark -
#pragma mark Tag Groups
void UAUnityPlugin_editNamedUserTagGroups(const char *payload);
void UAUnityPlugin_editChannelTagGroups(const char *payload);
#pragma mark -
#pragma mark Attributes
void UAUnityPlugin_editChannelAttributes(const char *payload);
void UAUnityPlugin_editNamedUserAttributes(const char *payload);
#pragma mark -
#pragma mark Data Collection
void UAUnityPlugin_setEnabledFeatures(const char *features);
void UAUnityPlugin_enableFeatures(const char *features);
void UAUnityPlugin_disableFeatures(const char *features);
bool UAUnityPlugin_isFeatureEnabled(const char *feature);
bool UAUnityPlugin_isAnyFeatureEnabled();
const char* UAUnityPlugin_getEnabledFeatures();
#pragma mark -
#pragma mark Preference Center
void UAUnityPlugin_openPreferenceCenter(NSString *preferenceCenterId);
#pragma mark -
#pragma mark Helpers
bool isValidFeature(NSArray *features);
UAFeatures stringToFeature(NSArray *features);
NSArray * featureToString(UAFeatures features);
@interface UAUnityPlugin : NSObject <UAPushNotificationDelegate, UADeepLinkDelegate, UAMessageCenterDisplayDelegate>
+ (UAUnityPlugin *)shared;
@property (nonatomic, copy) NSString* listener;
@property (nonatomic, strong) NSDictionary* storedNotification;
@property (nonatomic, copy) NSString* storedDeepLink;
@end