setLocalCustomInt method

  1. @override
Future<V2TimCallback> setLocalCustomInt({
  1. required String msgID,
  2. required int localCustomInt,
})
override

Implementation

@override
Future<V2TimCallback> setLocalCustomInt(
    {required String msgID, required int localCustomInt}) async {
  final result = await TencentImSDKPlugin.v2TIMManager
      .getMessageManager()
      .setLocalCustomInt(msgID: msgID, localCustomInt: localCustomInt);
  if (result.code != 0) {
    _coreService.callOnCallback(TIMCallback(
        type: TIMCallbackType.API_ERROR,
        errorMsg: result.desc,
        errorCode: result.code));
  }
  return result;
}