- Inheritance
-
- Object
- PlatformInterface
- SudGipPluginPlatform
- Implementers
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addEmbeddedGamePkg(String gameId, String pkgPath)
→ Future<Map<String, dynamic>>
-
添加游戏嵌入包路径
-
destroyGame(int platformViewId)
→ Future<Map<String, dynamic>>
-
销毁游戏
-
dispose(int platformViewId)
→ Future<Map<String, dynamic>>
-
PlatformView移除不用时,通知原生端释放资源
-
getVersion()
→ Future<String?>
-
-
initSDK(String appId, String appKey, String userId)
→ Future<Map<String, dynamic>>
-
-
loadGame(int platformViewId, String userId, String roomId, String code, String gameId, String language, String gameViewInfo, String gameConfig)
→ Future<Map<String, dynamic>>
-
加载游戏
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyStateChange(int platformViewId, String state, String dataJson)
→ Future<Map<String, dynamic>>
-
给游戏发送消息
-
pauseGame(int platformViewId)
→ Future<Map<String, dynamic>>
-
暂停游戏
-
playGame(int platformViewId)
→ Future<Map<String, dynamic>>
-
恢复游戏
-
pushAudio(int platformViewId, Uint8List byteArray)
→ Future<Map<String, dynamic>>
-
发送音频流数据
-
putAdvancedConfig(Map<String, String> config)
→ Future<Map<String, dynamic>>
-
高级配置
-
removeEmbeddedGamePkg(String gameId)
→ Future<Map<String, dynamic>>
-
移除游戏嵌入包
-
removeFSMGame(int viewId)
→ void
-
设置游戏事件的监听
-
setFSMGame(int viewId, SudGIPFSMGame fsmGame)
→ void
-
设置游戏事件的监听
-
setShowCustomLoading(bool show)
→ Future<Map<String, dynamic>>
-
设置加载游戏时,是否要显示自定义的Loading效果
-
setShowLoadingGameBg(bool show)
→ Future<Map<String, dynamic>>
-
设置加载游戏时,是否显示游戏背景图
-
toString()
→ String
-
A string representation of this object.
inherited
-
updateCode(int platformViewId, String code)
→ Future<Map<String, dynamic>>
-
更新code