diff --git a/docs/plugins/creating-plugins/configuration-values.md b/docs/plugins/creating-plugins/configuration-values.md index 7a25ae4c3..3fe13583a 100644 --- a/docs/plugins/creating-plugins/configuration-values.md +++ b/docs/plugins/creating-plugins/configuration-values.md @@ -84,17 +84,17 @@ export default config; ## Accessing Configuration Values -The Capacitor API contains utility methods to access plugin configuration values from the native implementation of your plugin. +The Capacitor API contains the `getConfig()` utility method to access plugin configuration values from the native implementation of your plugin. -For iOS, use the `getConfigValue()` method: +For iOS: ```swift -if let style = getConfigValue("style") as? String { +if let style = getConfig().getString("style") { // Set the style } ``` -For Android, use the `getConfig()` method: +For Android: ```Java String style = getConfig().getString("style"); diff --git a/versioned_docs/version-v5/plugins/creating-plugins/configuration-values.md b/versioned_docs/version-v5/plugins/creating-plugins/configuration-values.md index 7a25ae4c3..3fe13583a 100644 --- a/versioned_docs/version-v5/plugins/creating-plugins/configuration-values.md +++ b/versioned_docs/version-v5/plugins/creating-plugins/configuration-values.md @@ -84,17 +84,17 @@ export default config; ## Accessing Configuration Values -The Capacitor API contains utility methods to access plugin configuration values from the native implementation of your plugin. +The Capacitor API contains the `getConfig()` utility method to access plugin configuration values from the native implementation of your plugin. -For iOS, use the `getConfigValue()` method: +For iOS: ```swift -if let style = getConfigValue("style") as? String { +if let style = getConfig().getString("style") { // Set the style } ``` -For Android, use the `getConfig()` method: +For Android: ```Java String style = getConfig().getString("style");