FlPiPAndroidConfig class

android 画中画配置 android picture-in-picture configuration

Inheritance

Constructors

FlPiPAndroidConfig({String? closeIconPath, Rational aspectRatio = const Rational.square(), String? packageName, bool enabledWhenBackground = false, bool createNewEngine = false, Rect? rect})
const

Properties

aspectRatio Rational
android 画中画窗口宽高比例 android picture in picture window width-height ratio
final
closeIconPath String?
当createNewEngine 等于true时,在android上实际上是创建了一个windowManager,而不是PIP,这个是右上角关闭按钮的图片路径 When createNewEngine= true, a windowManager is actually created on Android, not PIP. This is the image path of the close button in the upper right corner
final
createNewEngine bool
创建新的 engine create new engine
finalinherited
enabledWhenBackground bool
Enabled when the app is in the background 当app处于后台时启用
finalinherited
hashCode int
The hash code for this object.
no setterinherited
packageName String?
资源地址的 packageName Set packageName to the asset address 如果使用你自己项目的资源文件 请设置packageName为null If using your own project's resource files, set packageName to null
finalinherited
rect Rect?
ios 画中画弹出前视频的初始大小和位置,默认 left:width/2,top:height/2,width:0.1,height:0.1 ios The initial size and position of the video before the picture-in-picture pops up,default left:width/2,top:height/2,width:0.1,height:0.1 android 系统弹窗的大小和位置 ,默认 left:width/2,top:height/2,width:300,height:300 android The size and position of the system popup,default left:width/2,top:height/2,width:300,height:300
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toHex(Color color) String
toMap() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited