Nhảy tới nội dung

Bắt đầu hỗ trợ ở phiên bản:

  • SDK: 2.5.3
Lưu ý

Cần xin cấp quyền tại trang Quản lý ứng dụng

Cho phép ứng dụng ẩn bàn phím

Parameters​

Object object​

PropertyTypeDefaultRequiredDescriptionMinimum Version
successfunctionCallback function khi gọi api thành công
failfunctionCallback function khi gọi api thất bại

Sample Code​

import { hideKeyboard } from "zmp-sdk/apis";

hideKeyboard({
success: (data) => {
// xử lý khi gọi api thành công
},
fail: (error) => {
// xử lý khi gọi api thất bại
console.log(error);
}
});

Hoặc

import { hideKeyboard } from "zmp-sdk/apis";

const hide = async () => {
try {
const data = await hideKeyboard({});
} catch (error) {
// xử lý khi gọi api thất bại
console.log(error);
}
};