clearAllIdentifier method

void clearAllIdentifier(
  1. XGBindType bindType
)

清除全部账号或标签

Implementation

void clearAllIdentifier(XGBindType bindType) {
  if (Platform.isIOS) {
    _channel.invokeMethod(
        'clearAllIdentifier', <String, dynamic>{'bindType': bindType.index});
  } else {
    if (bindType.index == XGBindType.tag.index) {
      xgApi.cleanXgTags();
    } else if (bindType.index == XGBindType.account.index) {
      xgApi.delAllAccount();
    }
  }
}