Developer

API Reference

IController_SetTimeoutReleaseCriteria()

Brew Release
Brew MP 1.0.2
See Also
ThresholdReleaseCriteria IController_GetTimeoutReleaseCriteria IWidget_ReleaseCapture IController IObserver_SetMaxTapDelay
Description
This function is used to enable and set or disable the timeout based criteria for a widget releasing its pointer event capturing.
Application can set the time (in ms) using ThresholdReleaseCriteria structure. When enabled, touch controller will release the capture mode if no other gesture (live scroll, flick or tap) is detected in the specified time.
Parameters
  • pif
    []:
    [in] Pointer to the IController interface object.
  • relcriteria
    []:
    [in] Structure that defines the release criteria.
Interface
Prototype
   int IController_SetTimeoutReleaseCriteria(IController *pif, 
                                          ThresholdReleaseCriteria relCriteria);
Return
   AEE_SUCCESS - If the controller is able to set timeout release criteria successfully.
   AEE_EFAILED - Otherwise.
Side Effect
Applications should ensure that the timeout set is greater than tap delay set using IObserver_SetMaxTapDelay. If the time threshold is less than tap delay then application will not receive tap/double notification when time based release criteria is set.
Comment
Application can use this function to set release criteria on controllers.
  • Follow