SwipeViewEvents: { PageSelected: "pageSelected"; PageScrolled: "pageScrolled"; StateChanged: "stateChanged"; Touch: "touch"; TouchCancelled: "touchCancelled"; TouchEnded: "touchEnded"; TouchMoved: "touchMoved" } = ...

Type declaration

  • PageSelected: "pageSelected"

    Gets/Sets the callback triggered when a page is selected after a swipe action.

    onPageSelected

    Param

    Param

    Selected page instance

    Android

    Ios

    Since

    1.1.10

  • PageScrolled: "pageScrolled"

    Gets/Sets the callback triggered when a page is scrolling. When call swipeToIndex function, onPageScrolled will behave differently on iOS and Android. Click this link for SwipeToIndex and onPageScrolled use together: "https://docs.smartface.io/smartface-native-framework/ui-elements/swipeview#using-with-one-page-and-component"

    onPageScrolled

    Param

    Index of the first page from the left that is currently visible.

    Param

    Indicating the offset from index. Value from range [0, width of swipeview].

    Android

    Ios

    Since

    2.0.9

  • StateChanged: "stateChanged"

    Gets/Sets the callback triggered during swipe actions.

    onStateChanged

    Param

    Android

    Ios

    Since

    1.1.10

  • Touch: "touch"
  • TouchCancelled: "touchCancelled"
  • TouchEnded: "touchEnded"
  • TouchMoved: "touchMoved"

Generated using TypeDoc