3333
3434public class OneSignalIOS : OneSignalPlatform {
3535
36- [ System . Runtime . InteropServices . DllImport ( "__Internal" ) ]
37- extern static public void _init ( string listenerName , string appId , bool autoPrompt , bool inAppLaunchURLs , int displayOption , int logLevel , int visualLogLevel ) ;
36+ [ System . Runtime . InteropServices . DllImport ( "__Internal" ) ]
37+ extern static public void _init ( string listenerName , string appId , bool autoPrompt , bool inAppLaunchURLs , int displayOption , int logLevel , int visualLogLevel ) ;
3838
39- [ System . Runtime . InteropServices . DllImport ( "__Internal" ) ]
40- extern static public void _registerForPushNotifications ( ) ;
41-
42- [ System . Runtime . InteropServices . DllImport ( "__Internal" ) ]
43- extern static public void _sendTag ( string tagName , string tagValue ) ;
39+ [ System . Runtime . InteropServices . DllImport ( "__Internal" ) ]
40+ extern static public void _registerForPushNotifications ( ) ;
41+
42+ [ System . Runtime . InteropServices . DllImport ( "__Internal" ) ]
43+ extern static public void _sendTag ( string tagName , string tagValue ) ;
4444
45- [ System . Runtime . InteropServices . DllImport ( "__Internal" ) ]
46- extern static public void _sendTags ( string tags ) ;
45+ [ System . Runtime . InteropServices . DllImport ( "__Internal" ) ]
46+ extern static public void _sendTags ( string tags ) ;
4747
48- [ System . Runtime . InteropServices . DllImport ( "__Internal" ) ]
49- extern static public void _getTags ( ) ;
48+ [ System . Runtime . InteropServices . DllImport ( "__Internal" ) ]
49+ extern static public void _getTags ( ) ;
5050
51- [ System . Runtime . InteropServices . DllImport ( "__Internal" ) ]
52- extern static public void _deleteTag ( string key ) ;
51+ [ System . Runtime . InteropServices . DllImport ( "__Internal" ) ]
52+ extern static public void _deleteTag ( string key ) ;
5353
54- [ System . Runtime . InteropServices . DllImport ( "__Internal" ) ]
55- extern static public void _deleteTags ( string keys ) ;
54+ [ System . Runtime . InteropServices . DllImport ( "__Internal" ) ]
55+ extern static public void _deleteTags ( string keys ) ;
5656
57- [ System . Runtime . InteropServices . DllImport ( "__Internal" ) ]
58- extern static public void _idsAvailable ( ) ;
57+ [ System . Runtime . InteropServices . DllImport ( "__Internal" ) ]
58+ extern static public void _idsAvailable ( ) ;
5959
60- [ System . Runtime . InteropServices . DllImport ( "__Internal" ) ]
61- extern static public void _setSubscription ( bool enable ) ;
60+ [ System . Runtime . InteropServices . DllImport ( "__Internal" ) ]
61+ extern static public void _setSubscription ( bool enable ) ;
6262
63- [ System . Runtime . InteropServices . DllImport ( "__Internal" ) ]
64- extern static public void _postNotification ( string json ) ;
63+ [ System . Runtime . InteropServices . DllImport ( "__Internal" ) ]
64+ extern static public void _postNotification ( string json ) ;
6565
66- [ System . Runtime . InteropServices . DllImport ( "__Internal" ) ]
67- extern static public void _syncHashedEmail ( string email ) ;
66+ [ System . Runtime . InteropServices . DllImport ( "__Internal" ) ]
67+ extern static public void _syncHashedEmail ( string email ) ;
6868
69- [ System . Runtime . InteropServices . DllImport ( "__Internal" ) ]
70- extern static public void _promptLocation ( ) ;
69+ [ System . Runtime . InteropServices . DllImport ( "__Internal" ) ]
70+ extern static public void _promptLocation ( ) ;
7171
72- [ System . Runtime . InteropServices . DllImport ( "__Internal" ) ]
73- extern static public void _setOneSignalLogLevel ( int logLevel , int visualLogLevel ) ;
72+ [ System . Runtime . InteropServices . DllImport ( "__Internal" ) ]
73+ extern static public void _setOneSignalLogLevel ( int logLevel , int visualLogLevel ) ;
7474
7575
76- public OneSignalIOS ( string gameObjectName , string appId , bool autoPrompt , bool inAppLaunchURLs , OneSignal . OSInFocusDisplayOption displayOption , OneSignal . LOG_LEVEL logLevel , OneSignal . LOG_LEVEL visualLevel ) {
77- _init ( gameObjectName , appId , autoPrompt , inAppLaunchURLs , ( int ) displayOption , ( int ) logLevel , ( int ) visualLevel ) ;
78- }
76+ public OneSignalIOS ( string gameObjectName , string appId , bool autoPrompt , bool inAppLaunchURLs , OneSignal . OSInFocusDisplayOption displayOption , OneSignal . LOG_LEVEL logLevel , OneSignal . LOG_LEVEL visualLevel ) {
77+ _init ( gameObjectName , appId , autoPrompt , inAppLaunchURLs , ( int ) displayOption , ( int ) logLevel , ( int ) visualLevel ) ;
78+ }
7979
80- public void RegisterForPushNotifications ( ) {
81- _registerForPushNotifications ( ) ;
82- }
80+ public void RegisterForPushNotifications ( ) {
81+ _registerForPushNotifications ( ) ;
82+ }
8383
84- public void SendTag ( string tagName , string tagValue ) {
85- _sendTag ( tagName , tagValue ) ;
86- }
84+ public void SendTag ( string tagName , string tagValue ) {
85+ _sendTag ( tagName , tagValue ) ;
86+ }
8787
88- public void SendTags ( IDictionary < string , string > tags ) {
89- _sendTags ( Json . Serialize ( tags ) ) ;
90- }
88+ public void SendTags ( IDictionary < string , string > tags ) {
89+ _sendTags ( Json . Serialize ( tags ) ) ;
90+ }
9191
92- public void GetTags ( ) {
93- _getTags ( ) ;
94- }
92+ public void GetTags ( ) {
93+ _getTags ( ) ;
94+ }
9595
96- public void DeleteTag ( string key ) {
97- _deleteTag ( key ) ;
98- }
96+ public void DeleteTag ( string key ) {
97+ _deleteTag ( key ) ;
98+ }
9999
100- public void DeleteTags ( IList < string > keys ) {
101- _deleteTags ( Json . Serialize ( keys ) ) ;
102- }
100+ public void DeleteTags ( IList < string > keys ) {
101+ _deleteTags ( Json . Serialize ( keys ) ) ;
102+ }
103103
104- public void IdsAvailable ( ) {
105- _idsAvailable ( ) ;
106- }
104+ public void IdsAvailable ( ) {
105+ _idsAvailable ( ) ;
106+ }
107107
108- public void SetSubscription ( bool enable ) {
109- _setSubscription ( enable ) ;
110- }
108+ public void SetSubscription ( bool enable ) {
109+ _setSubscription ( enable ) ;
110+ }
111111
112- public void PostNotification ( Dictionary < string , object > data ) {
113- _postNotification ( Json . Serialize ( data ) ) ;
114- }
112+ public void PostNotification ( Dictionary < string , object > data ) {
113+ _postNotification ( Json . Serialize ( data ) ) ;
114+ }
115115
116116
117117 public void SyncHashedEmail ( string email ) {
@@ -122,8 +122,8 @@ public void PromptLocation() {
122122 _promptLocation ( ) ;
123123 }
124124
125- public void SetLogLevel ( OneSignal . LOG_LEVEL logLevel , OneSignal . LOG_LEVEL visualLevel ) {
126- _setLogLevel ( ( int ) logLevel , ( int ) visualLevel ) ;
127- }
125+ public void SetLogLevel ( OneSignal . LOG_LEVEL logLevel , OneSignal . LOG_LEVEL visualLevel ) {
126+ _setOneSignalLogLevel ( ( int ) logLevel , ( int ) visualLevel ) ;
127+ }
128128}
129129#endif
0 commit comments