Skip to content

Commit

Permalink
docs(ios-plugin-guide): Change getBoolean to getBool (#2221)
Browse files Browse the repository at this point in the history
  • Loading branch information
rlfrahm authored and jcesarmobile committed Dec 10, 2019
1 parent 99996e2 commit bae2a8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/docs-md/plugins/ios.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ For example, here is how you'd get data passed to your method:
@objc func storeContact(_ call: CAPPluginCall) {
let name = call.getString("yourName") ?? "default name"
let address = call.getObject("address") ?? [:]
let isAwesome = call.getBoolean("isAwesome") ?? false
let isAwesome = call.getBool("isAwesome") ?? false

guard let id = call.options["id"] as? String else {
call.reject("Must provide an id")
Expand Down

0 comments on commit bae2a8d

Please sign in to comment.