isReady
Observable field indicating whether the SDK has fully initialized and is ready to use.
Type
boolean
Description
Set to true when the SDK finishes initializing, and set to false when
destroySDK() is called. Observe this field to react to SDK
initialization and teardown lifecycle events, particularly after calling
restartSDK().
Usage
m.lib.observeField("isReady", "onSDKReady")
function onSDKReady(event as Object)
isReady = event.getData()
if isReady
print "SDK is ready"
else
print "SDK has been destroyed"
end if
end function
Notes
isReadystarts asfalseand transitions totrueonce the SDK initialization sequence completes.destroySDK()setsisReady = falsebefore running teardown logic.onPlayerTimeCodeUpdated()is silently ignored whileisReadyisfalse.