capacitor-real-time
v0.1.10
Published
This Capacitor plugin provides real time for mobiles which cannot be modified by the user.
Downloads
3
Readme
capacitor-real-time
This Capacitor plugin provides real time for mobiles which cannot be modified by the user.
Install
npm install capacitor-real-time
npx cap sync
API
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>
| Param | Type |
| ------------- | ------------------------------- |
| options
| { value: string; } |
Returns: Promise<{ value: string; }>
getUptime()
getUptime() => Promise<{ uptime: number; }>
Returns: Promise<{ uptime: number; }>
getGnssTime()
getGnssTime() => Promise<{ gnssTime: number | null; }>
Returns: Promise<{ gnssTime: number | null; }>
getNetworkTime()
getNetworkTime() => Promise<{ networkTime: number | null; }>
Returns: Promise<{ networkTime: number | null; }>
getTrueTime()
getTrueTime() => Promise<{ trueTime: number | null; }>
Returns: Promise<{ trueTime: number | null; }>