WebView SDK Documentation - v2.0.0
    Preparing search index...

    Variable EVENT_LISTConst

    EVENT_LIST: readonly [
        {
            description: "Mở một WebView mới với URL và cấu hình tùy chỉnh.";
            event: "APP_OPEN_WEBVIEW";
            method: "appOpenWebview";
            requestType: "AppOpenWebviewRequest";
            responseType: "AppOpenWebviewResponse";
        },
        {
            description: "Mở ứng dụng từ App Store/Google Play hoặc launch app đã cài.";
            event: "APP_OPEN_STORE";
            method: "appOpenStore";
            requestType: "AppOpenStoreRequest";
            responseType: "AppOpenStoreResponse";
        },
        {
            description: "Đóng Mini App và điều hướng về màn hình khác.";
            event: "EXIT";
            method: "exit";
            requestType: "ExitRequest";
            responseType: "ExitResponse";
        },
        {
            description: "Mở URL bằng browser mặc định của hệ thống.";
            event: "OPEN_EXTERNAL_LINK";
            method: "openExternalLink";
            requestType: "OpenExternalLinkRequest";
            responseType: "OpenExternalLinkResponse";
        },
        {
            description: "Mở một Mini App khác từ Mini App hiện tại.";
            event: "OPEN_MINI_APP";
            method: "openMiniApp";
            requestType: "OpenMiniAppRequest";
            responseType: "OpenMiniAppResponse";
        },
        {
            description: "Yêu cầu nhiều quyền user data cùng một lúc.";
            event: "REQUEST_MULTIPLE_USER_DATA_PERMISSION";
            method: "requestMultipleUserDataPermission";
            requestType: "RequestMultipleUserDataPermissionRequest";
            responseType: "RequestMultipleUserDataPermissionResponse";
        },
        {
            description: "Kiểm tra trạng thái nhiều quyền user data cùng lúc.";
            event: "CHECK_MULTIPLE_USER_DATA_PERMISSION";
            method: "checkMultipleUserDataPermission";
            requestType: "CheckMultipleUserDataPermissionRequest";
            responseType: "CheckMultipleUserDataPermissionResponse";
        },
        {
            description: "Lấy nhiều trường dữ liệu người dùng từ host app.";
            event: "GET_MULTIPLE_USER_DATA";
            method: "getMultipleUserData";
            requestType: "GetMultipleUserDataRequest";
            responseType: "GetMultipleUserDataResponse";
        },
        {
            description: "Xóa tất cả quyền đã cache ở local.";
            event: "CLEAR_PERMISSION_CACHE";
            method: "clearPermissionCache";
            requestType: "ClearPermissionCacheRequest";
            responseType: "ClearPermissionCacheResponse";
        },
        {
            description: "Yêu cầu mở camera";
            event: "REQUEST_CAMERA_PERMISSION";
            method: "requestCameraPermission";
            requestType: "RequestCameraPermissionRequest";
            responseType: "RequestCameraPermissionResponse";
        },
        {
            description: "Yêu cầu vị trí";
            event: "REQUEST_LOCATION_PERMISSION";
            method: "requestLocationPermission";
            requestType: "RequestLocationPermissionRequest";
            responseType: "RequestLocationPermissionResponse";
        },
        {
            description: "Yêu cầu truy cập ảnh trên thiết bị";
            event: "REQUEST_PHOTOS_PERMISSION";
            method: "requestPhotosPermission";
            requestType: "RequestPhotosPermissionRequest";
            responseType: "RequestPhotosPermissionResponse";
        },
        {
            description: "Yêu cầu truy cập video trên thiết bị";
            event: "REQUEST_VIDEOS_PERMISSION";
            method: "requestVideosPermission";
            requestType: "RequestVideosPermissionRequest";
            responseType: "RequestVideosPermissionResponse";
        },
        {
            description: "Yêu cầu truy cập audio trên thiết bị";
            event: "REQUEST_AUDIO_PERMISSION";
            method: "requestAudioPermission";
            requestType: "RequestAudioPermissionRequest";
            responseType: "RequestAudioPermissionResponse";
        },
        {
            description: "Yêu cầu ghi âm trên thiết bị";
            event: "REQUEST_RECORD_AUDIO_PERMISSION";
            method: "requestRecordAudioPermission";
            requestType: "RequestRecordAudioPermissionRequest";
            responseType: "RequestRecordAudioPermissionResponse";
        },
        {
            description: "Yêu cầu truy cập danh bạ trên thiết bị";
            event: "REQUEST_CONTACTS_PERMISSION";
            method: "requestContactsPermission";
            requestType: "RequestContactsPermissionRequest";
            responseType: "RequestContactsPermissionResponse";
        },
        {
            description: "Yêu cầu truy cập tài liệu trên thiết bị";
            event: "REQUEST_DOCUMENT_PERMISSION";
            method: "requestDocumentPermission";
            requestType: "RequestDocumentPermissionRequest";
            responseType: "RequestDocumentPermissionResponse";
        },
        {
            description: "";
            event: "REQUEST_PAYMENT_PERMISSION";
            method: "requestPaymentPermission";
            requestType: "RequestPaymentPermissionRequest";
            responseType: "RequestPaymentPermissionResponse";
        },
        {
            description: "";
            event: "REQUEST_LOGIN_PERMISSION";
            method: "requestLoginPermission";
            requestType: "RequestLoginPermissionRequest";
            responseType: "RequestLoginPermissionResponse";
        },
        {
            description: "Yêu cầu xác thực sinh trắc học (vân tay, Face ID).";
            event: "REQUEST_LOCAL_AUTHENTICATION_PERMISSION";
            method: "requestLocalAuthenticationPermission";
            requestType: "RequestLocalAuthenticationPermissionRequest";
            responseType: "RequestLocalAuthenticationPermissionResponse";
        },
        {
            description: "Kiểm tra quyền camera";
            event: "CHECK_CAMERA_PERMISSION";
            method: "checkCameraPermission";
            requestType: "CheckCameraPermissionRequest";
            responseType: "CheckCameraPermissionResponse";
        },
        {
            description: "Kiểm tra quyền vị trí";
            event: "CHECK_LOCATION_PERMISSION";
            method: "checkLocationPermission";
            requestType: "CheckLocationPermissionRequest";
            responseType: "CheckLocationPermissionResponse";
        },
        {
            description: "Kiểm tra quyền truy cập ảnh";
            event: "CHECK_PHOTOS_PERMISSION";
            method: "checkPhotosPermission";
            requestType: "CheckPhotosPermissionRequest";
            responseType: "CheckPhotosPermissionResponse";
        },
        {
            description: "Kiểm tra quyền truy cập video";
            event: "CHECK_VIDEOS_PERMISSION";
            method: "checkVideosPermission";
            requestType: "CheckVideosPermissionRequest";
            responseType: "CheckVideosPermissionResponse";
        },
        {
            description: "Kiểm tra quyền truy cập file audio";
            event: "CHECK_AUDIO_PERMISSION";
            method: "checkAudioPermission";
            requestType: "CheckAudioPermissionRequest";
            responseType: "CheckAudioPermissionResponse";
        },
        {
            description: "Kiểm tra quyền ghi âm trên thiết bị";
            event: "CHECK_RECORD_AUDIO_PERMISSION";
            method: "checkRecordAudioPermission";
            requestType: "CheckRecordAudioPermissionRequest";
            responseType: "CheckRecordAudioPermissionResponse";
        },
        {
            description: "Kiểm tra quyền truy cập danh bạ";
            event: "CHECK_CONTACTS_PERMISSION";
            method: "checkContactsPermission";
            requestType: "CheckContactsPermissionRequest";
            responseType: "CheckContactsPermissionResponse";
        },
        {
            description: "Kiểm tra quyền truy cập file tài liệu";
            event: "CHECK_DOCUMENT_PERMISSION";
            method: "checkDocumentPermission";
            requestType: "CheckDocumentPermissionRequest";
            responseType: "CheckDocumentPermissionResponse";
        },
        {
            description: "";
            event: "CHECK_PAYMENT_PERMISSION";
            method: "checkPaymentPermission";
            requestType: "CheckPaymentPermissionRequest";
            responseType: "CheckPaymentPermissionResponse";
        },
        {
            description: "";
            event: "CHECK_LOGIN_PERMISSION";
            method: "checkLoginPermission";
            requestType: "CheckLoginPermissionRequest";
            responseType: "CheckLoginPermissionResponse";
        },
        {
            description: "kiểm tra quyền xác thực sinh trắc học (vân tay, Face ID).";
            event: "CHECK_LOCAL_AUTHENTICATION_PERMISSION";
            method: "checkLocalAuthenticationPermission";
            requestType: "CheckLocalAuthenticationPermissionRequest";
            responseType: "CheckLocalAuthenticationPermissionResponse";
        },
        {
            description: "Thực hiện xác thực sinh trắc học (vân tay, Face ID).";
            event: "EXECUTE_LOCAL_AUTHENTICATION";
            method: "executeLocalAuthentication";
            requestType: "ExecuteLocalAuthenticationRequest";
            responseType: "ExecuteLocalAuthenticationResponse";
        },
        {
            description: " lấy trạng thái xác thực sinh trắc học (vân tay, Face ID).";
            event: "GET_LOCAL_AUTHENTICATION_STATUS";
            method: "getLocalAuthenticationStatus";
            requestType: "GetLocalAuthenticationStatusRequest";
            responseType: "GetLocalAuthenticationStatusResponse";
        },
        {
            description: "Lấy danh sách contacts từ danh bạ hệ thống. ";
            event: "GET_CONTACTS";
            method: "getContacts";
            requestType: "GetContactsRequest";
            responseType: "GetContactsResponse";
        },
        {
            description: "Lưu giá trị kiểu string.";
            event: "SAVE_STRING_VALUE";
            method: "saveStringValue";
            requestType: "SaveStringValueRequest";
            responseType: "SaveStringValueResponse";
        },
        {
            description: "Lưu giá trị kiểu boolean.";
            event: "SAVE_BOOLEAN_VALUE";
            method: "saveBooleanValue";
            requestType: "SaveBooleanValueRequest";
            responseType: "SaveBooleanValueResponse";
        },
        {
            description: "Lưu giá trị kiểu int.";
            event: "SAVE_INTEGER_VALUE";
            method: "saveIntegerValue";
            requestType: "SaveIntegerValueRequest";
            responseType: "SaveIntegerValueResponse";
        },
        {
            description: "Lưu giá trị kiểu long.";
            event: "SAVE_LONG_VALUE";
            method: "saveLongValue";
            requestType: "SaveLongValueRequest";
            responseType: "SaveLongValueResponse";
        },
        {
            description: "Lưu giá trị kiểu float.";
            event: "SAVE_FLOAT_VALUE";
            method: "saveFloatValue";
            requestType: "SaveFloatValueRequest";
            responseType: "SaveFloatValueResponse";
        },
        {
            description: "Lấy giá trị kiểu string.";
            event: "GET_STRING_VALUE";
            method: "getStringValue";
            requestType: "GetStringValueRequest";
            responseType: "GetStringValueResponse";
        },
        {
            description: "Lấy giá trị kiểu boolean.";
            event: "GET_BOOLEAN_VALUE";
            method: "getBooleanValue";
            requestType: "GetBooleanValueRequest";
            responseType: "GetBooleanValueResponse";
        },
        {
            description: "Lấy giá trị kiểu int.";
            event: "GET_INTEGER_VALUE";
            method: "getIntegerValue";
            requestType: "GetIntegerValueRequest";
            responseType: "GetIntegerValueResponse";
        },
        {
            description: "Lấy giá trị kiểu long.";
            event: "GET_LONG_VALUE";
            method: "getLongValue";
            requestType: "GetLongValueRequest";
            responseType: "GetLongValueResponse";
        },
        {
            description: "Lấy giá trị kiểu float.";
            event: "GET_FLOAT_VALUE";
            method: "getFloatValue";
            requestType: "GetFloatValueRequest";
            responseType: "GetFloatValueResponse";
        },
        {
            description: "Lấy giá trị kiểu float.";
            event: "CLEAR_STORAGE";
            method: "clearStorage";
            requestType: "ClearStorageRequest";
            responseType: "ClearStorageResponse";
        },
        {
            description: "Lấy vị trí GPS hiện tại của thiết bị. Phải có quyền LOCATION_PERMISSION trước khi sử dụng API này.";
            event: "GET_LOCATION";
            method: "getLocation";
            requestType: "GetLocationRequest";
            responseType: "GetLocationResponse";
        },
        {
            description: "Mở dialog chia sẻ nội dung text.";
            event: "SHARE_TEXT_CONTENT";
            method: "shareTextContent";
            requestType: "ShareTextContentRequest";
            responseType: "ShareTextContentResponse";
        },
        {
            description: "Get mini app token";
            event: "MINI_APP_TOKEN";
            method: "miniAppToken";
            requestType: "MiniAppTokenRequest";
            responseType: "MiniAppTokenResponse";
        },
        {
            description: "Update mini app theme";
            event: "UPDATE_MINI_APP_THEME";
            method: "updateMiniAppTheme";
            requestType: "UpdateMiniAppThemeRequest";
            responseType: "UpdateMiniAppThemeResponse";
        },
        {
            description: "Session expiration event, Delegate cho host app xử lý";
            event: "EXPIRED_SESSION";
            method: "expiredSession";
            requestType: "ExpiredSessionRequest";
            responseType: "ExpiredSessionResponse";
        },
        {
            description: "Lưu ảnh vào bộ sưu tập";
            event: "SAVE_IMAGE_TO_GALLERY";
            method: "saveImageToGallery";
            requestType: "SaveImageToGalleryRequest";
            responseType: "SaveImageToGalleryResponse";
        },
        {
            description: "Lưu file vào thư mục";
            event: "SAVE_FILE";
            method: "saveFile";
            requestType: "SaveFileRequest";
            responseType: "SaveFileResponse";
        },
        {
            description: "Mở deeplink nội bộ app";
            event: "OPEN_IN_APP_DEEPLINK";
            method: "openInAppDeeplink";
            requestType: "OpenInAppDeeplinkRequest";
            responseType: "OpenInAppDeeplinkResponse";
        },
        {
            description: "Get init event";
            event: "INIT_REQUEST";
            method: "initRequest";
            requestType: "InitRequestRequest";
            responseType: "InitRequestResponse";
        },
        {
            description: "Đặt độ sáng màn hình (screen-scoped) cho màn hình mini-app đang hiển thị. Tự khôi phục khi rời màn/nền.";
            event: "SET_SCREEN_BRIGHTNESS";
            method: "setScreenBrightness";
            requestType: "SetScreenBrightnessRequest";
            responseType: "SetScreenBrightnessResponse";
        },
        {
            description: "Khôi phục độ sáng về giá trị đã lưu gần nhất theo session mini-app.";
            event: "RESTORE_SCREEN_BRIGHTNESS";
            method: "restoreScreenBrightness";
            requestType: "RestoreScreenBrightnessRequest";
            responseType: "RestoreScreenBrightnessResponse";
        },
        {
            description: "Mở trình soạn tin nhắn của hệ điều hành với số nhận và nội dung điền sẵn. SDK KHÔNG gửi tin — người dùng tự bấm gửi trong trình soạn tin. ⚠️ Mở thành công trả về mã SDK852, KHÔNG phải SDK000, nên `isSuccess()` trả false và Promise bị REJECT dù mọi thứ đúng: hãy đọc kết quả trong nhánh `catch`, giá trị nhận được là nguyên response (đọc `data.terminal_state`). Đây là hành vi đã biết và được chấp nhận, không phải lỗi. Trên iOS còn một nhịp thứ hai mang kết cục thật, và nhịp đó KHÔNG đến qua Promise — phải nghe bằng `app.on('OPEN_SMS_COMPOSER', cb)`.";
            event: "OPEN_SMS_COMPOSER";
            method: "openSmsComposer";
            requestType: "OpenSmsComposerRequest";
            responseType: "OpenSmsComposerResponse";
        },
    ] = ...

    Danh sach tat ca events voi metadata