sizeLimit

abstract var sizeLimit: Int

Get/Sets the size limit of each publication storage area. The size of a publication storage area is defined as the total string length of all the keys and values in the storage area.

A ReaderDocument script cannot insert a key-value pair into the localStorage or sessionStorage if it causes the total size to become greater than this size limit.

This size limit is only used when a content document uses the Web Storage APIs in JavaScript. It is ignored if any method in ReaderPublicationStorage or ReaderPublicationStorageArea is used to modify the contents of a storage area.

The default size limit is 5000000.