An audiobook app for SDL should include as much of the native apps functionality as possible, since that is what a user will be expecting out of the app.
Your Audiobook app should contain such basic functionality as
Resume. You can use build in controls for these features by calling the
subscribeButton RPC. This will allow you to not only create buttons on the infotainment system but also be informed when the user presses hard buttons, which might be placed on the steering wheel. It is important to also add voice control capabilities for these functions. To add a voice command use the
AddCommand RPC but omit the
menuParams argument. This will create a voice command without creating an item in the menu.
More information about this RPC can be found on the UI.AddCommand page.
Your app should display information like title, author, and potentially additional items like chapter number. It is encouraged to use the following layout of information on the screen:
It is encouraged to show static images of the book cover, however moving or interactive images are not allowed. Neither is the display of the actual text of the book.
More information can be found in the DisplayInformation section.
PerformInteraction RPC to allow users to choose from lists of Books.
When you receive the
NOT_AUDIBLE state you should pause the audio and resume when you receive
AUDIBLE. The pausing and resuming should be independent on the current