Nhảy tới nội dung

stopBeaconDiscovery

Lưu ý

Với API version ﹤ 2.23.0, phải gọi api login trước khi gọi api này và cần xin cấp quyền tại trang Quản lý ứng dụng

Tắt tìm kiếm các thiết bị ở gần.

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

Return Values

boolean data

Sample Code

import api from 'zmp-sdk';

api.stopBeaconDiscovery({
success: (res) => {
// 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
const test = async () => {
try {
const res = await api.stopBeaconDiscovery({});
} catch (error) {
// xử lý khi gọi api thất bại
console.log(error);
}
};