getStrategy method
Implementation
DefaultStrategy getStrategy() {
switch (Flagship.getStatus()) {
case FSSdkStatus.SDK_NOT_INITIALIZED:
return NotReadyStrategy(visitor);
case FSSdkStatus.SDK_PANIC:
return PanicStrategy(visitor);
case FSSdkStatus.SDK_INITIALIZED:
if (visitor.getConsent() == false) {
// Return non consented
return NoConsentStrategy(visitor);
} else {
return DefaultStrategy(visitor);
}
case FSSdkStatus.SDK_INITIALIZING:
return NotReadyStrategy(visitor);
}
}