友盟上报机制

[MobClick startWithAppkey:APPKEY reportPolicy:SEND_INTERVAL  channelId:APPChannel];

reportPolicy:是设置友盟上报机制,一下是其参数说明:

typedef enum {

REALTIME = 0,      //实时发送              (只在测试模式下有效)

BATCH = 1,          //启动发送

SEND_INTERVAL = 6,  //最小间隔发送          ([90-86400]s, default 90s)

// deprecated strategy:

SENDDAILY = 4,      //每日发送              (not available)

SENDWIFIONLY = 5,  //仅在WIFI下时启动发送  (not available)

SEND_ON_EXIT = 7    //进入后台时发送        (not avilable, will be support later)

} ReportPolicy;

你可能感兴趣的:(友盟上报机制)