screenshot method

Future<bool> screenshot(
  1. String filePath, {
  2. String imageSize = "0",
})

截图

Implementation

Future<bool> screenshot(String filePath, {String imageSize = "0"}) async {
  if (isCreated == false) return false;
  if (source == null) return false;
  return await app_player_channel.invokeMethod(
      "app_player_screenshot", [this.textureId, filePath, imageSize]);
}