提交 1b8a9f93 编写于 作者: Z z30025928

cherry pick to beta5

Signed-off-by: Nz30025928 <734222381@qq.com>
上级 e2b5da8b
......@@ -88,7 +88,7 @@ import geoLocationManager from '@ohos.geoLocationManager';
| countryCode | string | 是 | 否 | 表示国家码信息。 |
| countryName | string| 是 | 否 | 表示国家信息。 |
| administrativeArea | string | 是 | 否 | 表示省份区域信息。 |
| subAdministrativeArea | string | 是 | 否 | 表示表示子区域信息。 |
| subAdministrativeArea | string | 是 | 否 | 表示子区域信息。 |
| locality | string | 是 | 否 | 表示城市信息。 |
| subLocality | string | 是 | 否 | 表示子城市信息。 |
| roadName | string | 是 | 否 |表示路名信息。 |
......@@ -782,12 +782,12 @@ on(type: 'gnssFenceStatusChange', request: GeofenceRequest, want: WantAgent): vo
{
bundleName: "com.example.myapplication",
abilityName: "EntryAbility",
action: "action1",
action: "action1"
}
],
operationType: wantAgent.OperationType.START_ABILITY,
requestCode: 0,
wantAgentFlags: [wantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG],
wantAgentFlags: [wantAgent.WantAgentFlags.UPDATE_PRESENT_FLAG]
};
wantAgent.getWantAgent(wantAgentInfo).then((wantAgentObj) => {
......
......@@ -411,7 +411,7 @@ on(type: 'fenceStatusChange', request: GeofenceRequest, want: WantAgent): void;
{
bundleName: "com.example.myapplication",
abilityName: "EntryAbility",
action: "action1",
action: "action1"
}
],
operationType: wantAgent.OperationType.START_ABILITY,
......
......@@ -71,9 +71,9 @@ export default {
},
fail: function(data, code) {
console.log('fail to get location. code:' + code + ', data:' + data);
},
}
});
},
}
}
```
......@@ -193,7 +193,7 @@ unsubscribe(): void
export default {
unsubscribe() {
geolocation.unsubscribe();
},
}
}
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册