Class sap.ui.vk.LocoModule: sap/ui/vk/Loco


Intercepts input event data for a SAPUI5 target, and interprets the data based on a supported set of gestures.

Experimental API:Since 1.32.0 This class is experimental and might be modified or removed in future versions.

Constructor Summary
new sap.ui.vk.Loco()Constructor for a new Loco.
Method Summary
sap.ui.vk.Loco.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.vk.Loco with name sClassName and enriches it with the information contained in oClassInfo.
sap.ui.vk.Loco.getMetadata()Returns a metadata object for class sap.ui.vk.Loco.
addHandler(handler)Adds a viewport event handler from Loco.
beginGesture(JSON)Signal begin of a input gesture.
contextMenu(JSON)Signal context menu event.
destroy()Cleans up, removes all handlers.
endGesture(JSON)Signal end of a input gesture.
move(JSON)Signal movement of a input gesture.
removeHandler(handler)Removes a viewport event handler from Loco.
Constructor Detail
new sap.ui.vk.Loco()
Constructor for a new Loco.
Method Detail
sap.ui.vk.Loco.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.vk.Loco with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.core.EventProvider.extend.

Parameters:
{string}sClassName Name of the class being created
{object}oClassInfo? Object literal with information about the class
{function}FNMetaImpl? Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata
Returns:
{function} Created class / constructor function
sap.ui.vk.Loco.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.vk.Loco.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
addHandler(handler)
Adds a viewport event handler from Loco.
Parameters:
{handler}handler to be added.
beginGesture(JSON)
Signal begin of a input gesture.
Parameters:
{event}JSON object including input event data.
contextMenu(JSON)
Signal context menu event.
Parameters:
{event}JSON object including input event data
destroy()
Cleans up, removes all handlers.
endGesture(JSON)
Signal end of a input gesture.
Parameters:
{event}JSON object including input event data.
move(JSON)
Signal movement of a input gesture.
Parameters:
{event}JSON object including input event data.
removeHandler(handler)
Removes a viewport event handler from Loco.
Parameters:
{handler}handler to be removed.