Class PlayerTouchListener

  • All Implemented Interfaces:
    android.view.View.OnTouchListener

    public class PlayerTouchListener
    extends java.lang.Object
    implements android.view.View.OnTouchListener
    Add this to your view to pass touch event in BanubaSdk: `view.setOnTouchListener(new PlayerTouchListener());`
    • Constructor Summary

      Constructors 
      Constructor Description
      PlayerTouchListener​(android.content.Context context, Player player)
      Create a new instance of PlayerTouchListener.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean onTouch​(android.view.View v, android.view.MotionEvent event)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PlayerTouchListener

        public PlayerTouchListener​(@NonNull
                                   android.content.Context context,
                                   @NonNull
                                   Player player)
        Create a new instance of PlayerTouchListener.
        Parameters:
        context - application context
        player - player which will receive and process touch events
    • Method Detail

      • onTouch

        public boolean onTouch​(android.view.View v,
                               android.view.MotionEvent event)
        Specified by:
        onTouch in interface android.view.View.OnTouchListener