kindle.messaging

Kindle’s use an internal system known as ToDo to handle communication with Amazon. This is used for downloading books, updating screensavers*, updating the store, telemetry, etc.

kindle.messaging.sendMessage

kindle.messaging.sendMessage(id, eventType, eventData)

Sends a message through the Kindle’s internal LIPC messaging system, message which is an object

NameExample ValueTypeDscription
idcom.lab126.chromebarStringThe ID used to determine the app to send the message to
eventTypeconfigureChromeStringThe event to send
eventData{ appId: ‘com.lab126.store’, topNavBar: { template: ’title’, title: “Mesquito Loader” } }ObjectThe data sent with the corresponding event

kindle.messaging.sendStringMessage

kindle.messaging.sendStringMessage(id, eventType, eventData)

Sends a message through the Kindle’s internal LIPC messaging system, message is a String

NameExample ValueTypeDscription
idcom.lab126.mfaStringThe ID used to determine the app to send the message to
eventTypeswitchViewModeStringThe event to send
eventDatafullscreenStringThe data sent with the corresponding event

kindle.messaging.recieveMessage

kindle.messaging.recieveMessage(eventType, callback)

Registers a callback function for a specific eventType if a LIPC message is sent to the WAF.

The callback recieves a property and json (or string) argument, ie:

callback(property, json)

The property value is a string of the eventType whilst the json value stores the data which is sent with an event.

This page is a WIP, a list of possible callbacks is being worked on at the moment