Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/rokuecp/rokuecp.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,20 @@ async def launch(self, app_id: str, params: dict[str, Any] | None = None) -> Non
encoded = urlencode(params)
await self._request(f"launch/{app_id}?{encoded}", method="POST", encoded=True)

async def input(self, params: dict[str, Any] | None = None) -> None:
"""Send request to the running application on the Roku device.

Args:
----
params: Dictionary of request parameters to send to the Roku device.

"""
if params is None:
params = {}

encoded = urlencode(params)
await self._request(f"input?{encoded}", method="POST", encoded=True)

async def literal(self, text: str) -> None:
"""Send literal text to the Roku device.

Expand Down