Skip to main content
Skip to main content

YesNoDialog

YesNoDialog

Description

Binary decision dialog. Base class for dialogs which require confirmation or cancellation of an action.

Parent

MessageDialog

Functions

inputEvent

Description

Definition

inputEvent()

Arguments

anyaction
anyvalue
anyeventUsed

Code

function YesNoDialog:inputEvent(action, value, eventUsed)
eventUsed = YesNoDialog:superClass().inputEvent( self , action, value, eventUsed)

if Platform.isAndroid and self.inputDisableTime < = 0 then
if action = = InputAction.MENU_BACK then
self:onNo()

-- always consume event to avoid triggering any other focused elements
eventUsed = true
end
end

return eventUsed
end