Flutter Engine
The Flutter Engine
Public Member Functions | Protected Member Functions | Static Package Functions | List of all members
org.skia.jetskidemo.CubeActivity Class Reference
Inheritance diagram for org.skia.jetskidemo.CubeActivity:

Public Member Functions

boolean onTouchEvent (MotionEvent e)
 

Protected Member Functions

void onCreate (Bundle savedInstanceState)
 

Static Package Functions

 [static initializer]
 

Detailed Description

Definition at line 306 of file CubeActivity.java.

Member Function Documentation

◆ [static initializer]()

org.skia.jetskidemo.CubeActivity.[static initializer]
inlinestaticpackage

◆ onCreate()

void org.skia.jetskidemo.CubeActivity.onCreate ( Bundle  savedInstanceState)
inlineprotected

Definition at line 315 of file CubeActivity.java.

315 {
316 super.onCreate(savedInstanceState);
317 setContentView(R.layout.activity_cube);
318
319 SurfaceView sv = findViewById(R.id.surfaceView);
320
321 CubeRenderer renderer = new CubeRenderer(getResources());
322 sv.getHolder().addCallback(renderer);
323
324 mGestureDetector = new GestureDetector(this, renderer);
325 mScaleDetector = new ScaleGestureDetector(this, renderer);
326 }
#define R(r)

◆ onTouchEvent()

boolean org.skia.jetskidemo.CubeActivity.onTouchEvent ( MotionEvent  e)
inline

Definition at line 329 of file CubeActivity.java.

329 {
330 // always dispatch to both detectors
331 mGestureDetector.onTouchEvent(e);
332 mScaleDetector.onTouchEvent(e);
333
334 return true;
335 }

The documentation for this class was generated from the following file: