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