Skip to content

Layout Builder Callback

Aditya Sharat edited this page Jan 19, 2017 · 2 revisions

onUnknownAttribute(String, JsonElement, ProteusView):Void

onUnknownViewType(String, View, JsonObject, JsonObject, int, Styles):ProteusView

onLayoutRequired(String, ProteusView):JsonObject

onViewBuiltFromViewProvider(ProteusView, View, String, int):Void

onEvent(ProteusView, JsonElement, EventType):Void

There are 3 event types OnClick, OnLongClick, OnTouch. When any of the former events are triggered on a view where onClick is set to a JsonElement the onEvent callback will be invoked, with the ProteusView which consumed the event, the set JsonElement and the triggered EventType. Checkout the demo app and click on views with onClick set on them and check the adb logs.

onPagerAdapterRequired(ProteusView, List, JsonObject):PagerAdapter

onAdapterRequired(ProteusView, List, JsonObject):Adapter