Пример #1
0
 async def screenshot(self) -> bytes:
     response = await self.stub.screenshot(ScreenshotRequest())
     return response.image_data
Пример #2
0
 async def screenshot(self) -> bytes:
     async with self.get_stub() as stub:
         response = await stub.screenshot(ScreenshotRequest())
         return response.image_data
Пример #3
0
async def client(client: CompanionClient) -> bytes:
    response = await client.stub.screenshot(ScreenshotRequest())
    return response.image_data