初始化配置项API
初始化配置项 API 均在 SDK 初始化代码块中设置,下面将分类描述各配置项的含义。
示例代码:
import android.app.Application;
import com.growingio.android.sdk.collection.Configuration;
import com.growingio.android.sdk.collection.GrowingIO;
import com.growingio.android.sdk.deeplink.DeeplinkCallback;
import java.util.Map;
public class TestApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
GrowingIO.startWithConfiguration(this, new Configuration()
.disableCellularImp()
.disableImageViewCollection(false)
.setBulkSize(300)
.setCellularDataLimit(10 * 1024 * 1024)
.setChannel("渠道名")
.setDebugMode(true)
.setDeeplinkCallback(new DeeplinkCallback() {
@Override
public void onReceive(Map<String, String> params, int error, long appAwakePassedTime) {
}
}).setDiagnose(false)
.setDisabled(false)
.setDisableImpression(false)
.setFlushInterval(10 * 1000)
.setMutiprocess(true)
.setSampling(0.34)
.setSessionInterval(23 * 1000)
.setTestMode(true)
.setThrottle(false)
.setTrackWebView(true)
.supportMultiProcessCircle(true)
.trackAllFragments()
.setImeiEnable(true)
.setGoogleAdIdEnable(true)
.setAndroidIdEnable(true)
.setRequireAppProcessesEnabled(true)
.setOAIDEnable(true)
.setOAIDProvideConfig(OaidProvideConfig.provideOaid(
context -> "<Your Oaid>"
)));
}
}
基础配置API
数据采集发送API
最后更新于