跳到主要内容

宿主回调

  1. OnTJHostCreateHandleListener
public protocol OnTJHostCreateHandleListener
{
func onSuccess(result: RuntimeGameHandle)
func onFailure(error: Error?)
}
  1. OnTJFirstFrameRenderedListener
public protocol OnTJFirstFrameRenderedListener
{
func onFirstFrameRendered();
}
  1. OnTJHostGamePackageDownloadHandleListener
public protocol OnTJHostGamePackageDownloadHandleListener {
func onStart()
func onProgress(progress: Double, totalBytesWritten: Int64, totalBytesExpectedToWrite: Int64)
func onSuccess()
func onFailure(error: Error?)
}
  1. OnTJHostHandleInitializeListener
public protocol OnTJHostHandleInitializeListener
{
func onSuccess(result: TJHostHandle)
func onFailure(error: Error?);
}
  1. OnTJHostHandleListener
public protocol OnTJHostHandleListener {
func onSuccess()
func onFailure(error: Error?)
}