setPageOrientation(params: Object)
Requires:
MiniKit≥2.4.1@ray-js/ray≥0.3.23
Platforms:
iOSAndroid
Description
Screen orientation setting: auto / portrait / landscape. Rotation is not supported in pad mode
Parameters
| Property | Type | Required | Description | MiniKit Since |
|---|---|---|---|---|
pageOrientation | string | Yes | Screen orientation setting: auto / portrait / landscape (default: landscape-right) | - |
reverse | boolean | No | Whether to use reverse rotation; only effective when pageOrientation is landscape; default false | v3.24.0 |
complete | () => void | No | Completion callback (executed on both success and failure) | - |
success | () => void | No | Callback on successful API call | - |
fail | (params: Object) => void | No | Failure callback | - |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None