public class LaserShapeLayer
extends FrameLayout
implements androidx.lifecycle.LifecycleObserver
限定符和类型 | 类和说明 |
---|---|
static interface |
LaserShapeLayer.OnChangeLaserShapeListener |
static class |
LaserShapeLayer.PositionInfo
极光笔范围位置信息
|
构造器和说明 |
---|
LaserShapeLayer(Context context) |
LaserShapeLayer(Context context,
AttributeSet attrs) |
LaserShapeLayer(Context context,
AttributeSet attrs,
int defStyleAttr) |
LaserShapeLayer(Context context,
AttributeSet attrs,
int defStyleAttr,
int defStyleRes) |
限定符和类型 | 方法和说明 |
---|---|
void |
addObserver(androidx.lifecycle.Lifecycle lifecycle) |
void |
enableDrawLaser(boolean isEnableDrawLaser) |
boolean |
isEnableDrawLaser() |
void |
onDestroy() |
void |
onDraw(Canvas canvas) |
boolean |
onTouchEvent(LPMotionEvent event) |
boolean |
onTouchEvent(MotionEvent event) |
void |
setDocInfo(java.lang.String docId,
int page) |
void |
setLiveRoom(LiveRoom liveRoom) |
void |
setOnChangeLaserShapeListener(LaserShapeLayer.OnChangeLaserShapeListener listener) |
public LaserShapeLayer(Context context)
public LaserShapeLayer(Context context, @Nullable AttributeSet attrs)
public LaserShapeLayer(Context context, @Nullable AttributeSet attrs, int defStyleAttr)
public LaserShapeLayer(Context context, @Nullable AttributeSet attrs, int defStyleAttr, int defStyleRes)
public void addObserver(androidx.lifecycle.Lifecycle lifecycle)
public void onDestroy()
public void setLiveRoom(LiveRoom liveRoom)
public void enableDrawLaser(boolean isEnableDrawLaser)
public boolean isEnableDrawLaser()
public void onDraw(Canvas canvas)
public void setDocInfo(java.lang.String docId, int page)
public boolean onTouchEvent(LPMotionEvent event)
public boolean onTouchEvent(MotionEvent event)
public void setOnChangeLaserShapeListener(LaserShapeLayer.OnChangeLaserShapeListener listener)