@@ -9,49 +9,32 @@ namespace iOSNativePlugin
99{
1010 public static class iOSApplication
1111 {
12- [ DllImport ( "__Internal" ) ]
13- static extern string iOSApplication_GetBundleIdentifier ( ) ;
14-
15- [ DllImport ( "__Internal" ) ]
16- static extern string iOSApplication_GetVersion ( ) ;
17-
18- [ DllImport ( "__Internal" ) ]
19- static extern string iOSApplication_GetBundleVersion ( ) ;
20-
21- [ DllImport ( "__Internal" ) ]
22- static extern void iOSApplication_OpenAppSettings ( ) ;
23-
24- [ DllImport ( "__Internal" ) ]
25- static extern void iOSApplication_SetUserSettingsBool ( string identifier , bool value ) ;
26-
27- [ DllImport ( "__Internal" ) ]
28- static extern bool iOSApplication_GetUserSettingsBool ( string identifier ) ;
29-
30- [ DllImport ( "__Internal" ) ]
31- static extern void iOSApplication_SetUserSettingsString ( string identifier , string value ) ;
32-
33- [ DllImport ( "__Internal" ) ]
34- static extern string iOSApplication_GetUserSettingsString ( string identifier ) ;
35-
36- [ DllImport ( "__Internal" ) ]
37- static extern void iOSApplication_SetUserSettingsFloat ( string identifier , float value ) ;
38-
39- [ DllImport ( "__Internal" ) ]
40- static extern float iOSApplication_GetUserSettingsFloat ( string identifier ) ;
41-
42- [ DllImport ( "__Internal" ) ]
43- static extern void iOSApplication_SetUserSettingsInt ( string identifier , long value ) ;
44-
45- [ DllImport ( "__Internal" ) ]
46- static extern long iOSApplication_GetUserSettingsInt ( string identifier ) ;
12+ [ DllImport ( "__Internal" ) ] static extern string iOSApplication_GetBundleIdentifier ( ) ;
13+ [ DllImport ( "__Internal" ) ] static extern string iOSApplication_GetVersion ( ) ;
14+ [ DllImport ( "__Internal" ) ] static extern string iOSApplication_GetBundleVersion ( ) ;
15+ [ DllImport ( "__Internal" ) ] static extern void iOSApplication_OpenAppSettings ( ) ;
16+ [ DllImport ( "__Internal" ) ] static extern void iOSApplication_SetAlternateIconName ( string iconName ) ;
17+ [ DllImport ( "__Internal" ) ] static extern string iOSApplication_GetAlternateIconName ( ) ;
18+ [ DllImport ( "__Internal" ) ] static extern void iOSApplication_SetUserSettingsBool ( string identifier , bool value ) ;
19+ [ DllImport ( "__Internal" ) ] static extern bool iOSApplication_GetUserSettingsBool ( string identifier ) ;
20+ [ DllImport ( "__Internal" ) ] static extern void iOSApplication_SetUserSettingsString ( string identifier , string value ) ;
21+ [ DllImport ( "__Internal" ) ] static extern string iOSApplication_GetUserSettingsString ( string identifier ) ;
22+ [ DllImport ( "__Internal" ) ] static extern void iOSApplication_SetUserSettingsFloat ( string identifier , float value ) ;
23+ [ DllImport ( "__Internal" ) ] static extern float iOSApplication_GetUserSettingsFloat ( string identifier ) ;
24+ [ DllImport ( "__Internal" ) ] static extern void iOSApplication_SetUserSettingsInt ( string identifier , long value ) ;
25+ [ DllImport ( "__Internal" ) ] static extern long iOSApplication_GetUserSettingsInt ( string identifier ) ;
26+ [ DllImport ( "__Internal" ) ] static extern void iOSApplication_RegisterUserSettingsChangeCallback ( UserSettingsChangeCallback callback ) ;
27+ [ DllImport ( "__Internal" ) ] static extern void iOSApplication_UnregisterUserSettingsChangeCallback ( ) ;
4728
48- [ DllImport ( "__Internal" ) ]
49- static extern void iOSApplication_RegisterUserSettingsChangeCallback ( UserSettingsChangeCallback callback ) ;
50-
51- [ DllImport ( "__Internal" ) ]
52- static extern void iOSApplication_UnregisterUserSettingsChangeCallback ( ) ;
53-
54-
29+ public static string GetAlternateIconName ( )
30+ {
31+ return iOSApplication_GetAlternateIconName ( ) ;
32+ }
33+
34+ public static void SetAlternateIconName ( string iconName )
35+ {
36+ iOSApplication_SetAlternateIconName ( iconName ) ;
37+ }
5538 /// <summary>
5639 /// 获取当前应用的Bundle Identifier
5740 /// </summary>
0 commit comments