NativeLoginDebugSettings

Debug-only choice between browser login and the SDK's built-in Native Login form, edited in the Login Options screen of the developer support menu and persisted across launches.

The settings are inert, and mode always reads AuthenticationMode.BROWSER, unless developer support is enabled and the app registered no Native Login activity of its own. When mode is AuthenticationMode.NATIVE, SalesforceSDKManager.loginActivityClass is DebugNativeLoginActivity.

The Native Login DPoP and hybrid choices live in config; they do not change SalesforceSDKManager.useDPoP or SalesforceSDKManager.useHybridAuthentication, which stay the browser login values.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The Native Login External Client App. Writes are ignored when the settings are not isAvailable.

Link copied to clipboard

True when the settings apply: developer support is on and the app has no native login activity.

Link copied to clipboard

The selected authentication mode. Leaving AuthenticationMode.NATIVE clears the Native Login feature markers so later browser logins do not report them. Writes are ignored when the settings are not isAvailable.

Functions

Link copied to clipboard
fun apply(json: String)

Applies a JSON configuration, using the same keys as iOS: consumerKey, redirectUri, communityUrl, useDPoP, useHybridFlow and authenticationMode (native or browser). Absent keys keep their current value. Nothing is saved when the JSON or the resulting Native Login configuration is invalid.

Link copied to clipboard
fun reset()

Restores the defaults: browser mode and no Native Login configuration.