Enums

Many of the Kindle Object API calls rely on or return certain strings. The meaning of these strings is detailed in this page.

The majority of this information was taken from the firmware from `/opt/var/local/mesquite` (in the `sqsh` file)

connectionPromptLevels

ValueDescription
allTurn on all user prompting. Everything needed to make a connection will be used.
neverTurn off all user prompting. A connection will be made automatically if possible
nocaptiveTurn on user prompting for everything but a captive portal situation

connectionResults

ValueDescription
successThe connection attempt succeeded
failure-user-canceledThe user canceled the connection request
failureThere was a failure when connecting
failure-captive-portalThere was a captive-portal related failure when connecting

scrollBarStates

ValueDescription
autoAutomatically hide/show scrollbar
hiddenHide the scrollbar
visibleShow the scrollbar

fileDownloadResults

ValueDescription
successSucceeded in downloadin the file
errorThere was an error downloading the file
canceledThe file download was canceled by the user
rejectedThe file type is not downloadable

eInkRefreshModes

ValueDescription
autoAutomatically set the refresh mode
minimalDo not refresh the display often
maximalRefresh the display often
manualDo not refresh the display at all unless directly called by JS/Code

connectionTypes

ValueDescription
wifiKindle is connected via WiFi
wanKindle is connected via 3g
noneNo interfaces are currently active on the Kindle (airplane mode)

orientations

ValueDescription
autoSet orientation automatically
portraitSet portrait orientation automatically
portraitUpPortrait orientation
portraitDownPortrait orientation (upside down)
landscapeSet landscape orientation automatically
landscapeLeftLandscape orientation (clockwise)
landscapeRightLandscape orientation (anticlockwise)

direction

ValueDescription
upUp
downDown
leftLeft
rightRight

alignment

ValueDescription
topTop
buttomBottom
centerCenter
leftLeft
rightRight

pillow.buttons

ValueDescription
backBack button
storeStore button
homeHome button
forwardForward button
menuMenu button
refreshBrowser refresh button
cancelCancel button
discoveryDiscovery button
KPP_BACKDecanter Chrome back button
KPP_CLOSEDecanter Chrome close button

pillow.buttonStates

ValueDescription
enabledButton is enabled
disabledButton is disabled
falseButton is hidden (this one is a boolean, not a string like the others)

pillow.buttonHandling

ValueDescription
systemButton is handled by the Kindle itself
notifyappButton is handled by the WAF

pillow.contextMenuIDs

ValueDescription
browserSettings???
browserBookmarks???
browserBookmarkPage???
browserHistory???
browserArticleOrWebMode???

pillow.contextMenuStates

ValueDescription
enabledMenu item enabled
disabledMenu item disabled