Skip to content

[Feature]: add method getDouble to Config #7634

@robingenz

Description

@robingenz

Description

There is currently no way to get a configuration value of type Double.

Platforms

  • iOS
  • Android
  • Web

Request or proposed solution

Add a new method getDouble to PluginConfig.swift:

@objc public func getDouble(_ configKey: String, _ defaultValue: Double) -> Double {
    if let val = (self.config)[keyPath: KeyPath(configKey)] as? Double {
        return val
    }
    return defaultValue
}

Alternatives

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions