LinkVisual Media SDK(Android) v2.7.0-ilop
Classes | Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
com.aliyun.iotx.linkvisual.media.video.views.ZoomableTextureView Class Reference

A textureView can zoom and translate the content with the gesture.Support Double tap/ Drag / zoom with two fingers. More...

Inheritance diagram for com.aliyun.iotx.linkvisual.media.video.views.ZoomableTextureView:

Classes

interface  OnViewEdgeListener
 
interface  OnZoomableTextureListener
 

Public Member Functions

 ZoomableTextureView (Context context)
 
 ZoomableTextureView (final Context context, final AttributeSet attrs)
 
 ZoomableTextureView (Context context, AttributeSet attrs, int defStyle)
 
void setMaxScale (float scale)
 
float getMaxScale ()
 
float getMinScale ()
 
void setOnZoomableTextureListener (OnZoomableTextureListener listener)
 
void setOnViewEdgeListener (OnViewEdgeListener listener)
 
void onRestoreInstanceState (Parcelable state)
 
void zoomOut (boolean smooth)
 
void setZoomScale (boolean smooth, float scale)
 
float getScale ()
 
boolean onTouchEvent (MotionEvent motionEvent)
 

Static Public Attributes

static final String TAG = "ZoomableTextureView"
 

Protected Member Functions

Parcelable onSaveInstanceState ()
 

Detailed Description

A textureView can zoom and translate the content with the gesture.Support Double tap/ Drag / zoom with two fingers.

Member Function Documentation

◆ getMaxScale()

float com.aliyun.iotx.linkvisual.media.video.views.ZoomableTextureView.getMaxScale ( )
inline

获取缩放比例上限

Returns
缩放比例

◆ getMinScale()

float com.aliyun.iotx.linkvisual.media.video.views.ZoomableTextureView.getMinScale ( )
inline

获取缩放比例下限

Returns
缩放比例

◆ getScale()

float com.aliyun.iotx.linkvisual.media.video.views.ZoomableTextureView.getScale ( )
inline

获取当前缩放比, 未放缩时为1.0f

Returns
当前的缩放比

◆ setMaxScale()

void com.aliyun.iotx.linkvisual.media.video.views.ZoomableTextureView.setMaxScale ( float  scale)
inline

设置放大倍数上限 默认为4倍

Parameters
scale倍数

◆ setOnViewEdgeListener()

void com.aliyun.iotx.linkvisual.media.video.views.ZoomableTextureView.setOnViewEdgeListener ( OnViewEdgeListener  listener)
inline

设置边缘触发监听器

Parameters
listener

◆ setOnZoomableTextureListener()

void com.aliyun.iotx.linkvisual.media.video.views.ZoomableTextureView.setOnZoomableTextureListener ( OnZoomableTextureListener  listener)
inline

设置监听器

Parameters
listener

◆ setZoomScale()

void com.aliyun.iotx.linkvisual.media.video.views.ZoomableTextureView.setZoomScale ( boolean  smooth,
float  scale 
)
inline

设置指定的缩放比

Parameters
smooth是否平滑变化
scale目标缩放比

◆ zoomOut()

void com.aliyun.iotx.linkvisual.media.video.views.ZoomableTextureView.zoomOut ( boolean  smooth)
inline

缩放比重置为1

Parameters
smooth是否平滑变化