Beispiel #1
0
 async def screenshot(self) -> bytes:
     response = await self.stub.screenshot(ScreenshotRequest())
     return response.image_data
Beispiel #2
0
 async def screenshot(self) -> bytes:
     async with self.get_stub() as stub:
         response = await stub.screenshot(ScreenshotRequest())
         return response.image_data
async def client(client: CompanionClient) -> bytes:
    response = await client.stub.screenshot(ScreenshotRequest())
    return response.image_data