We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 395df46 commit 7a3ebf7Copy full SHA for 7a3ebf7
libs/SalesforceSDK/src/com/salesforce/androidsdk/app/SalesforceSDKManager.kt
@@ -1487,6 +1487,12 @@ open class SalesforceSDKManager protected constructor(
1487
@Suppress("NON_FINAL_MEMBER_IN_OBJECT") // This allows Java subtypes to override this property without an inspector warning
1488
open fun getInstance() = INSTANCE ?: throw RuntimeException("Apps must call SalesforceSDKManager.init() first.")
1489
1490
+ /** Allow Kotlin subclasses to set themselves as the instance. */
1491
+ @JvmSynthetic
1492
+ fun setInstance(subclass: SalesforceSDKManager) {
1493
+ INSTANCE = subclass
1494
+ }
1495
+
1496
/**
1497
* Indicates if a Salesforce SDK manager instance is initialized.
1498
* @return true if SalesforceSDKManager has been initialized already
0 commit comments