feat(companion): add direct disconnect metadata getters
This commit is contained in:
@@ -300,6 +300,14 @@ export class MacOSCompanionClient {
|
||||
return this.runtime.idle;
|
||||
}
|
||||
|
||||
get lastDisconnectCode(): number | undefined {
|
||||
return this.runtime.lastDisconnectCode;
|
||||
}
|
||||
|
||||
get lastDisconnectReason(): string | undefined {
|
||||
return this.runtime.lastDisconnectReason;
|
||||
}
|
||||
|
||||
getPendingWorkSnapshot(): PendingWorkSnapshot {
|
||||
return this.runtime.getPendingWorkSnapshot();
|
||||
}
|
||||
@@ -578,6 +586,14 @@ export class IOSCompanionClient {
|
||||
return this.runtime.idle;
|
||||
}
|
||||
|
||||
get lastDisconnectCode(): number | undefined {
|
||||
return this.runtime.lastDisconnectCode;
|
||||
}
|
||||
|
||||
get lastDisconnectReason(): string | undefined {
|
||||
return this.runtime.lastDisconnectReason;
|
||||
}
|
||||
|
||||
getPendingWorkSnapshot(): PendingWorkSnapshot {
|
||||
return this.runtime.getPendingWorkSnapshot();
|
||||
}
|
||||
@@ -854,6 +870,14 @@ export class AndroidCompanionClient {
|
||||
return this.runtime.idle;
|
||||
}
|
||||
|
||||
get lastDisconnectCode(): number | undefined {
|
||||
return this.runtime.lastDisconnectCode;
|
||||
}
|
||||
|
||||
get lastDisconnectReason(): string | undefined {
|
||||
return this.runtime.lastDisconnectReason;
|
||||
}
|
||||
|
||||
getPendingWorkSnapshot(): PendingWorkSnapshot {
|
||||
return this.runtime.getPendingWorkSnapshot();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user