• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# @ohos.bluetooth.map (蓝牙map模块)
2
3map模块提供了访问信息相关功能的方法。
4
5> **说明:**
6>
7> 本模块首批接口从API version 11开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。
8
9
10
11## 导入模块
12
13```js
14import map from '@ohos.bluetooth.map';
15```
16
17
18## map.createMapMseProfile
19
20createMapMseProfile(): MapMseProfile
21
22创建mapMse profile实例。
23
24**系统能力**:SystemCapability.Communication.Bluetooth.Core25
26**返回值:**
27
28| 类型                            | 说明         |
29| ----------------------------- | ---------- |
30| MapMseProfile | 返回该profile的实例。 |
31
32**示例:**
33
34```js
35import { BusinessError } from '@ohos.base';
36try {
37    let mapMseProfile = map.createMapMseProfile();
38    console.info('MapMse success');
39} catch (err) {
40    console.error('errCode: ' + (err as BusinessError).code + ', errMessage: ' + (err as BusinessError).message);
41}
42```
43
44
45## mapMseProfile
46
47使用mapMseProfile方法之前需要创建该类的实例进行操作,通过createMapMseProfile()方法构造此实例。
48