Skip to content

Function: getPlatform()

ts
function getPlatform(): string;

Returns the current platform: 'iOS', 'Android', 'MacOS', 'Windows', 'Linux', or 'Unknown'.

Returns

string

Example

ts
getPlatform() // => 'MacOS'

Since

1.0.0

Released under the MIT License.