mirror of
https://gitee.com/openharmony/applications_app_samples
synced 2024-11-24 00:50:03 +00:00
分布式应用适配
Signed-off-by: yeyedeshen <yangxin181@huawei.com>
This commit is contained in:
parent
d9ca9d1a08
commit
a7d786d98d
@ -170,6 +170,7 @@ export class RemoteDeviceModel {
|
||||
continue;
|
||||
};
|
||||
let bindParam = {
|
||||
bindLevel: 3,
|
||||
bindType: 1,
|
||||
targetPkgName: 'ohos.samples.distributeddatagobang',
|
||||
appName: 'distributeddatagobang',
|
||||
|
@ -251,6 +251,7 @@ export class RemoteDeviceModel {
|
||||
try {
|
||||
if (this.deviceManager !== undefined) {
|
||||
this.deviceManager.bindTarget(device.deviceId, {
|
||||
bindLevel: 3,
|
||||
bindType: 1,
|
||||
targetPkgName: BUNDLE_NAME,
|
||||
appName: 'Distributed distributecalc',
|
||||
|
@ -148,6 +148,7 @@ export class RemoteDeviceModel {
|
||||
if (this.discoverLists[i].deviceId === device.deviceId) {
|
||||
Logger.info(TAG, 'device founded, ignored');
|
||||
let bindParam = {
|
||||
bindLevel: 3,
|
||||
bindType: 1,
|
||||
targetPkgName: 'ohos.samples.distributedmusicplayer',
|
||||
appName: 'Music',
|
||||
|
@ -218,6 +218,7 @@ export default class RemoteDeviceModel {
|
||||
'extraInfo': extraInfo
|
||||
}
|
||||
let bindParam = {
|
||||
"bindLevel": 3,
|
||||
"bindType": 1,
|
||||
"appName": 'Distributed Calc',
|
||||
"targetPkgName": 'ohos.samples.distributedcalc',
|
||||
|
@ -202,6 +202,7 @@ class RemoteDeviceModel {
|
||||
try {
|
||||
if (this.deviceManager !== null) {
|
||||
this.deviceManager.bindTarget(device.deviceId, {
|
||||
bindLevel: 3,
|
||||
bindType: 1,
|
||||
targetPkgName: BUNDLE,
|
||||
appName: 'Distributed rdb',
|
||||
|
@ -211,6 +211,7 @@ class RemoteDeviceModel {
|
||||
try {
|
||||
if (this.deviceManager !== null) {
|
||||
this.deviceManager.bindTarget(device.deviceId, {
|
||||
bindLevel: 3,
|
||||
bindType: 1,
|
||||
targetPkgName: BUNDLE,
|
||||
appName: 'Distributed distributedrdb',
|
||||
|
@ -158,6 +158,7 @@ export default class RemoteDeviceModel {
|
||||
try {
|
||||
if (this.deviceManager !== null) {
|
||||
this.#deviceManager.bindTarget(deviceId, {
|
||||
bindLevel: 3,
|
||||
bindType: 1,
|
||||
targetPkgName: 'ohos.samples.distributedmusicplayer',
|
||||
appName: 'Music',
|
||||
|
@ -217,6 +217,7 @@ export class RemoteDeviceModel {
|
||||
try {
|
||||
if (this.deviceManager !== null) {
|
||||
this.deviceManager.bindTarget(device.deviceId, {
|
||||
bindLevel: 3,
|
||||
bindType: 1,
|
||||
targetPkgName: 'ohos.samples.kvstore',
|
||||
appName: 'Distributed kvstore',
|
||||
|
Loading…
Reference in New Issue
Block a user