getCloudServiceStatus

Requires:
@ray-js/lock-sdk≥1.2.0

Method signature
getCloudServiceStatus()

Description

Get cloud storage service status (purchased or not / remaining days, etc.)

Parameters

None

Return Value

Type: Promise<CloudServiceStatus>
Cloud storage service status
CloudServiceStatus
PropertyTypeDescription
isExitbooleanWhether a valid service window exists
durationnumberRemaining days of video cloud storage
imgDurationnumberRemaining days of image cloud storage
hasPurchasedOrderbooleantrue = has active/future orders; false = never purchased or expired
isFreebooleantrue = gifted, false = self-purchased

Examples

import { getCloudServiceStatus } from '@ray-js/lock-sdk';
const status = await getCloudServiceStatus();