Skip to main content
Skip to main content

MultiOptionDialog

MultiOptionDialog

Description

Option Dialog with up to four actions, corresponding to MENU_ACTIVATE, MENU_ACCEPT, MENU_BACK and MENU_CANCEL

Parent

MessageDialog

Functions

inputEvent

Description

Definition

inputEvent()

Arguments

anyaction
anyvalue
anyeventUsed

Code

function MultiOptionDialog:inputEvent(action, value, eventUsed)
eventUsed = MultiOptionDialog: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