rainway-sdk-native package
Classes
Class | Description |
---|---|
Peer | A Rainway Peer which is connected to us. These are cached statically and will be automatically cleaned up on disconnect. |
RainwayError | An error thrown by the runtime. Check the logs also for more information. Any returned error *should* be accompanied by an Error level log. |
Runtime |
Enumerations
Functions
Function | Description |
---|---|
fmtLogLevel(lv) | Format the log level to a capitalized string such as "Warn" or "Error". |
Interfaces
Interface | Description |
---|---|
ConnectionRequest | |
ConnectionRequestEvent | |
FilePaths | |
IGamepadReport | A request to bring the remote virtual gamepad with ID "slot" into the state described. |
ILogicalInput | A request to perform a remote text insertion (as if pasting some Unicode text). This is independent of keyboard layout. |
IMouseAbsolute | A request to move the remote mouse to an absolute pixel coordinate on the streamed monitor. |
IMouseClick | A request to click a button on the remote mouse. |
IMouseRelative | A request to move the remote mouse by (dx, dy) pixels. |
IMouseScroll | A request to scroll the remote mouse. |
IPenAbsolute | A request to perform a remote absolute pen movement. https://docs.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-pointer\_pen\_info |
ISetClipboardText | A request to store some text in the other peer's clipboard. |
ITouchAbsolute | |
ITouchesAbsolute | A request to perform a remote absolute touch movement. https://docs.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-pointer\_touch\_info |
ITouchPenPointerInfo | Information common to touch and pen events. This is a subset of: https://docs.microsoft.com/en-us/windows/win32/api/winuser/ns-winuser-pointer\_info |
IViewportResize | A request to resize the streamed application, because the local stream viewport size has changed. Currently this request will be carried out in App Isolation, when one window is isolated. Otherwise it is ignored. |
PeerInformation | |
RainwayAudioSubmission | |
RuntimeCallbacks | Register callbacks |
RuntimeConfig | Runtime configuration for initialization. |
StreamConfig | |
StreamRequest | |
StreamRequestEvent |
Type Aliases
Type Alias | Description |
---|---|
ConnectionRequestAccept | |
ConnectionRequestReject | |
LogSink | |
OnConnectionRequest | |
OnPeerDataChannel | |
OnPeerError | |
OnPeerMessage | |
OnPeerStateChange | |
OnRuntimeConnectionLost | |
OnStreamAnnouncement | |
OnStreamEnd | |
OnStreamError | |
OnStreamInput | |
OnStreamPeerEvent | |
OnStreamRequest | |
OnStreamStart | |
OnStreamStop | |
PeerId | |
RainwayInput | An input to perform in an interactive stream.This is a discriminated union type: match on type to distinguish types of input, and then handle the fields of the narrowed type.See: https://basarat.gitbook.io/typescript/type-system/discriminated-unions |
StreamId | |
StreamRequestAccept | |
StreamRequestReject |