...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
[ GarbageCollected, constructor(DOMString path) ] interface StorageInfo { Promise <number> getDeviceSize(); Promise <StorageDeviceInfo> getDeviceInfo(); } interface StorageDeviceInfo { attribute number size; attribute DOMString productName; //@Optional attribute DOMString oemID; //@Optional attribute number auSize; //@Optional attribute DOMString productRev; //@Optional attribute DOMString mfrDate; //@Optional attribute number mfrID; //@Optional attribute DOMString serial; //@Optional attribute DOMString signalVoltage; //@Optional attribute DOMString uhsMode; //@Optional attribute number specVersion; //@Optional attribute DOMString speedClass; //@Optional attribute DOMString sataModel; //@Optional attribute DOMString sataVendor; //@Optional } |
Object
...
Creation
Anchor | ||||
---|---|---|---|---|
|
To create an storageinfo object, first load the brightsign/storageinfo
module using the Require()
method. Then create an instance of the storageinfo class with a string value specifying the storage path.
...