cancel method

void cancel()

Cancels the render in progress.

The render stops immediately and its onComplete callback receives GemError.cancel. Start the next render from that callback: until it is called, start returns GemError.inUse. Does nothing when no render is in progress.

See also:

  • isRunning - Check whether a render is in progress.

Implementation

void cancel() {
  objectMethod(pointerId, 'ActivityVideoPreview', 'cancel');
}