함수형 API getPlatformOS로도 같은 기능을 쓸 수 있어요.GitBook Assistant
함수형 API getPlatformOS로도 같은 기능을 쓸 수 있어요.
getPlatformOS
현재 실행 중인 플랫폼 정보예요. 'ios' 또는 'android' 중 하나예요.
'ios'
'android'
상수 값이라 호출 없이 바로 읽어요.
Device.os: "ios" | "android";
Params
없음
Response
'ios' 또는 'android'예요.
import { Device } from "@apps-in-toss/web-framework"; console.log(Device.os);
도움이 되었나요?