Lines Matching refs:cloudData

1 # @ohos.data.cloudData (端云服务)(系统接口)
22 > - 当前页面仅包含本模块的系统接口,其他公开接口参见[@ohos.data.cloudData (端云服务)](js-apis-data-cloudData.md)。
29 import { cloudData } from '@kit.ArkData';
144 cloudData.Config.enableCloud(account, switches, (err: BusinessError) => {
199 cloudData.Config.enableCloud(account, switches).then(() => {
245 cloudData.Config.disableCloud(account, (err: BusinessError) => {
298 cloudData.Config.disableCloud(account).then(() => {
347 cloudData.Config.changeAppCloudSwitch(account, bundleName, true, (err: BusinessError) => {
403 cloudData.Config.changeAppCloudSwitch(account, bundleName, true).then(() => {
451 cloudData.Config.notifyDataChange(account, bundleName, (err: BusinessError) => {
506 cloudData.Config.notifyDataChange(account, bundleName).then(() => {
553 cloudData.Config.notifyDataChange({
606 cloudData.Config.notifyDataChange({
664 cloudData.Config.notifyDataChange({
721 cloudData.Config.queryStatistics(accountId, bundleName, storeId).then((result) => {
772 cloudData.Config.queryLastSyncInfo(accountId, bundleName, storeId).then((result) => {
797 | strategy | [StrategyType](js-apis-data-cloudData.md#strategytype) | 是 | 配置的策略类型。 |
822 cloudData.Config.setGlobalCloudStrategy(cloudData.StrategyType.NETWORK, [cloudData.NetWorkStrategy.…
864 type dataType = Record<string, cloudData.ClearAction>
866 'test_bundleName1': cloudData.ClearAction.CLEAR_CLOUD_INFO,
867 'test_bundleName2': cloudData.ClearAction.CLEAR_CLOUD_DATA_AND_INFO
870 cloudData.Config.clear(account, appActions, (err: BusinessError) => {
923 type dataType = Record<string, cloudData.ClearAction>;
925 'test_bundleName1': cloudData.ClearAction.CLEAR_CLOUD_INFO,
926 'test_bundleName2': cloudData.ClearAction.CLEAR_CLOUD_DATA_AND_INFO
929 cloudData.Config.clear(account, appActions).then(() => {
1071 let participants = new Array<cloudData.sharing.Participant>();
1074 role: cloudData.sharing.Role.ROLE_INVITER,
1075 state: cloudData.sharing.State.STATE_UNKNOWN,
1088 cloudData.sharing.allocResourceAndShare('storeName', predicates, participants, ['uuid', 'data']).th…
1136 let participants = new Array<cloudData.sharing.Participant>();
1139 role: cloudData.sharing.Role.ROLE_INVITER,
1140 state: cloudData.sharing.State.STATE_UNKNOWN,
1153 cloudData.sharing.allocResourceAndShare('storeName', predicates, participants, ['uuid', 'data'], (e…
1202 let participants = new Array<cloudData.sharing.Participant>();
1205 role: cloudData.sharing.Role.ROLE_INVITER,
1206 state: cloudData.sharing.State.STATE_UNKNOWN,
1219 cloudData.sharing.allocResourceAndShare('storeName', predicates, participants, (err: BusinessError,…
1271 let participants = new Array<cloudData.sharing.Participant>();
1274 role: cloudData.sharing.Role.ROLE_INVITER,
1275 state: cloudData.sharing.State.STATE_UNKNOWN,
1285 cloudData.sharing.share('sharing_resource_test', participants).then((result) => {
1324 let participants = new Array<cloudData.sharing.Participant>();
1327 role: cloudData.sharing.Role.ROLE_INVITER,
1328 state: cloudData.sharing.State.STATE_UNKNOWN,
1338 cloudData.sharing.share('sharing_resource_test', participants, ((err: BusinessError, result) => {
1384 let participants = new Array<cloudData.sharing.Participant>();
1387 role: cloudData.sharing.Role.ROLE_INVITER,
1388 state: cloudData.sharing.State.STATE_UNKNOWN,
1398 cloudData.sharing.unshare('sharing_resource_test', participants).then((result) => {
1437 let participants = new Array<cloudData.sharing.Participant>();
1440 role: cloudData.sharing.Role.ROLE_INVITER,
1441 state: cloudData.sharing.State.STATE_UNKNOWN,
1451 cloudData.sharing.unshare('sharing_resource_test', participants, ((err: BusinessError, result) => {
1496 cloudData.sharing.exit('sharing_resource_test').then((result) => {
1534 cloudData.sharing.exit('sharing_resource_test', ((err: BusinessError, result) => {
1580 let participants = new Array<cloudData.sharing.Participant>();
1583 role: cloudData.sharing.Role.ROLE_INVITER,
1584 state: cloudData.sharing.State.STATE_UNKNOWN,
1595 cloudData.sharing.changePrivilege('sharing_resource_test', participants).then((result) => {
1634 let participants = new Array<cloudData.sharing.Participant>();
1637 role: cloudData.sharing.Role.ROLE_INVITER,
1638 state: cloudData.sharing.State.STATE_UNKNOWN,
1649 cloudData.sharing.changePrivilege('sharing_resource_test', participants, ((err: BusinessError, resu…
1694 cloudData.sharing.queryParticipants('sharing_resource_test').then((result) => {
1732 cloudData.sharing.queryParticipants('sharing_resource_test', ((err: BusinessError, result) => {
1777 cloudData.sharing.queryParticipantsByInvitation('sharing_invitation_code_test').then((result) => {
1815 cloudData.sharing.queryParticipantsByInvitation('sharing_invitation_code_test', ((err: BusinessErro…
1862 cloudData.sharing.confirmInvitation('sharing_invitation_code_test', cloudData.sharing.State.STATE_A…
1903 cloudData.sharing.confirmInvitation('sharing_invitation_code_test', cloudData.sharing.State.STATE_A…
1950 cloudData.sharing.changeConfirmation('sharing_resource_test', cloudData.sharing.State.STATE_REJECTE…
1989 cloudData.sharing.changeConfirmation('sharing_resource_test', cloudData.sharing.State.STATE_REJECTE…