You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -263,8 +263,8 @@ Generate app icons using a tool like [appicon.co](https://www.appicon.co/) to en
263
263
264
264
Method | Description | Parameters | Returns |
265
265
--- | --- | --- | --- |
266
-
**changeIcon(iconName: string)**| Changes the app's icon to the specified icon. <br/> **Note:** The package automatically closes the app on Android after changing the app icon. This behavior is implemented to prevent duplicate icons and requires no additional action from the user. | iconName (string): The name of the icon to switch to. | `Promise<void>`: Resolves with void or rejects with an error. |
267
-
**getIcon()** | Retrieves the name of the currently active app icon. | None | `Promise<string>`: Resolves with the name of the current used icon or rejects with an error. |
266
+
**changeIcon`<T extends string>`(iconName: T)**| Changes the app's icon to the specified icon. <br/> **Note:** The package automatically closes the app on Android after changing the app icon. This behavior is implemented to prevent duplicate icons and requires no additional action from the user. | iconName (T): The name of the icon to switch to. | `Promise<void>`: Resolves with void or rejects with an error. |
267
+
**getIcon`<T extends string>`()** | Retrieves the name of the currently active app icon. | None | `Promise<T>`: Resolves with the name of the current used icon or rejects with an error. |
0 commit comments