Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GameRecorder.pause() 等方法应该 Promise 调用 #5

Open
zhouzhuo810 opened this issue Jun 30, 2024 · 0 comments
Open

GameRecorder.pause() 等方法应该 Promise 调用 #5

zhouzhuo810 opened this issue Jun 30, 2024 · 0 comments

Comments

@zhouzhuo810
Copy link

https://developers.weixin.qq.com/minigame/dev/api/game-recorder/GameRecorder.pause.html

这几个方法应该改成Promise调用:

  Future<dynamic> abort() {
    final result = $$context$$.callMethodAwaitPromise('abort', []);
    return result;
  }

  Future<dynamic> pause() {
    final result = $$context$$.callMethodAwaitPromise('pause', []);
    return result;
  }

  Future<dynamic> resume() {
    final result = $$context$$.callMethodAwaitPromise('resume', []);
    return result;
  }

  Future<dynamic> stop() {
    final result = $$context$$.callMethodAwaitPromise('stop', []);
    return result;
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant