-
Notifications
You must be signed in to change notification settings - Fork 19
deprecate suppressNotification parameter in icon methods #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,21 +30,18 @@ public class AppIconPlugin: CAPPlugin, CAPBridgedPlugin { | |
| } | ||
|
|
||
| @objc func reset(_ call: CAPPluginCall) { | ||
| let suppressNotification = call.getBool("suppressNotification") ?? true | ||
|
|
||
| setIcon(iconName: nil, suppressNotification: suppressNotification, call) | ||
| let _ = call.getBool("suppressNotification") // Deprecated: parameter is ignored | ||
| setIcon(iconName: nil, call) | ||
| } | ||
|
|
||
| @objc func change(_ call: CAPPluginCall) { | ||
|
|
||
| guard let iconName = call.getString("name") else { | ||
| call.reject("Must provide an icon name.") | ||
| return | ||
| } | ||
|
|
||
| let suppressNotification = call.getBool("suppressNotification") ?? true | ||
|
|
||
| setIcon(iconName: iconName, suppressNotification: suppressNotification, call) | ||
| let _ = call.getBool("suppressNotification") // Deprecated: parameter is ignored | ||
johnborges marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| setIcon(iconName: iconName, call) | ||
| } | ||
|
|
||
| func setIcon(iconName: String?, suppressNotification: Bool, _ call: CAPPluginCall) { | ||
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.