initWithoutStart static method
void
initWithoutStart(})
初始化SDK 可以在进入应用后立即调用 返回是否初始化成功
Implementation
static void initWithoutStart(
/// 应用ID
String appId,
{
/// 控制日志打印
bool isDebug = true,
/// gdpr状态,-1为未知,0为用户未授权,1为用户授权
int gdpr = -1,
/// coppa状态,-1为未知,0为成人,1为儿童
int coppa = -1,
/// ccpa状态,-1为未知,0为允许出售,1为不允许出售
int ccpa = -1,
/// 用户年龄,默认为0
int age = 0,
/// 隐私权限控制
ZJCustomController? customController}) {
_sdkMethodChannel.invokeMethod("initWithoutStart", {
"appId": appId,
"isDebug": isDebug,
"gdpr": gdpr,
"coppa": coppa,
"ccpa": ccpa,
"age": age,
"customController": customController?.toMap(),
});
}