Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

Device integration

Includes a code sample that demonstrates how the IFlip interface is defined and implemented.

This sample code shows:

  • How to retrieve flip IDs, display IDs, flip capabilities, and so forth, in accordance with the current flip position.
  • Audio/display to exhibit events triggered during slide, swivel, and flip.
  • Detecting events(EVT_FLIP, EVT_KEYGUARD, and EVT_SCR_ROTATE) from a background applet.

The code sample is divided into seven parts:

  • Variable definitions and #include statements, the structure of the applet, and function prototypes.
  • Definition and implementation of the AEEClsCreateInstance() function
  • Definition and implementation of the SampleAppWizard_HandleEvent() function
  • Definition and implementation of the c_iflipapp_InitAppData() function
  • Definition and implementation of the c_iflipapp_FreeAppData() function
  • Definition and implementation of the c_iflipapp_DrawScreen() function
  • Definitions and implementations of the c_iflipapp_DrawNotice() and c_iflipapp_PlayAudio(), c_iflipapp_MediaNotify(), and c_iflipapp_ackBGapp() functions