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