TXFlutterNativeAPI class
Constructors
- TXFlutterNativeAPI.new({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''})
-
Constructor for TXFlutterNativeAPI. The
binaryMessenger
named argument is available for dependency injection. If it is left null, the default BinaryMessenger will be used which routes to the host platform.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- pigeonVar_binaryMessenger → BinaryMessenger?
-
final
- pigeonVar_messageChannelSuffix → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
abandonAudioFocus(
) → Future< void> - 释放音频焦点,只用于安卓端
-
getBrightness(
) → Future< DoubleMsg> - 获得当前界面亮度 0.0 ~ 1.0
-
getSysBrightness(
) → Future< DoubleMsg> - 获取系统界面亮度,IOS系统与界面亮度一致,安卓可能会有差异
-
getSystemVolume(
) → Future< DoubleMsg> - 获得当前系统音量,范围:0.0 ~ 1.0
-
isDeviceSupportPip(
) → Future< IntMsg> - 当前设备是否支持画中画模式 @return TXVodPlayEvent 0 可开启画中画模式 -101 android版本过低 -102 画中画权限关闭/设备不支持画中画 -103 当前界面已销毁
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerSysBrightness(
BoolMsg isRegister) → Future< void> - register or unregister system brightness
-
requestAudioFocus(
) → Future< void> - 请求获得音频焦点,只用于安卓端
-
restorePageBrightness(
) → Future< void> - 恢复当前界面亮度
-
setBrightness(
DoubleMsg brightness) → Future< void> - 修改当前界面亮度
-
setSystemVolume(
DoubleMsg volume) → Future< void> - 设置当前系统音量,0.0 ~ 1.0
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
pigeonChannelCodec
→ const MessageCodec<
Object?>