bindWithIdentifiers method

void bindWithIdentifiers({
  1. required List identifys,
  2. required XGBindType bindType,
})

批量绑定账号或标签 ios 对于账号操作. List类型为dic数组{'account':identifyStr, 'accountType':0} ios 对于标签操作,List类型为字符串数组(标签字符串不允许有空格或者是tab字符) identifyStr android List类型为字符串数组(标签字符串不允许有空格或者是tab字符) identifyStr

Implementation

void bindWithIdentifiers({
  required List identifys,
  required XGBindType bindType,
}) {
  if (Platform.isIOS) {
    _channel.invokeMethod('bindWithIdentifiers',
        {'identifys': identifys, 'bindType': bindType.index});
  } else {
    if (bindType.index == XGBindType.tag.index) {
      xgApi.addXgTags(tagNames: identifys);
    }
  }
}