fix: update onError definition to match implementation (#3349)

Co-authored-by: olivier <olivier.bouillet@ifeelsmart.com>
This commit is contained in:
Olivier Bouillet 2023-11-16 08:40:14 +01:00 committed by GitHub
parent abd73dca4a
commit fdbd6a6ba8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 10 deletions

View File

@ -241,11 +241,21 @@ export type OnReceiveAdEventData = Readonly<{
}>;
export type OnVideoErrorData = Readonly<{
errorString: string;
errorException: string;
errorStackTrace: string;
errorCode: string;
error: string;
error: OnVideoErrorDataDetails;
target?: number; // ios
}>;
export type OnVideoErrorDataDetails = Readonly<{
errorString?: string; // android
errorException?: string; // android
errorStackTrace?: string; // android
errorCode?: string; // android
error?: string; // ios
code?: number; // ios
localizedDescription?: string; // ios
localizedFailureReason?: string; // ios
localizedRecoverySuggestion?: string; // ios
domain?: string; // ios
}>;
export type OnAudioFocusChangedData = Readonly<{

View File

@ -118,13 +118,22 @@ export type OnReceiveAdEventData = Readonly<{
}>;
export type OnVideoErrorData = Readonly<{
errorString: string;
errorException: string;
errorStackTrace: string;
errorCode: string;
error: string;
error: OnVideoErrorDataDetails;
target?: number; // ios
}>;
export type OnVideoErrorDataDetails = Readonly<{
errorString?: string; // android
errorException?: string; // android
errorStackTrace?: string; // android
errorCode?: string; // android
error?: string; // ios
code?: number; // ios
localizedDescription?: string; // ios
localizedFailureReason?: string; // ios
localizedRecoverySuggestion?: string; // ios
domain?: string; // ios
}>;
export type OnAudioFocusChangedData = Readonly<{
hasAudioFocus: boolean;
}>;