Package 

Class SdkReference


  • 
    public final class SdkReference
    
                        

    Class establishing the reference to the particular SDK instance by using its name.

    Once SDK instance with given name is available (during the SdkReference.get call), it will be kept in this class and callback onSdkInstanceCaptured will be fired.

    Once SDK instance with given name becomes inactive (it is stopped), reference will be automatically cleaned up.

    • Method Summary

      Modifier and Type Method Description
      final SdkCore get() Returns SDK instance if it is acquired, null otherwise.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SdkReference

        SdkReference(String sdkInstanceName, Function1<SdkCore, Unit> onSdkInstanceCaptured)
        Parameters:
        sdkInstanceName - Name of the SDK instance to capture.
        onSdkInstanceCaptured - Callback which will be fired once SDK instance is acquired.
      • SdkReference

        SdkReference(String sdkInstanceName)
        Parameters:
        sdkInstanceName - Name of the SDK instance to capture.
      • SdkReference

        SdkReference()
    • Method Detail

      • get

         final SdkCore get()

        Returns SDK instance if it is acquired, null otherwise.