saveRestore abstract method

void saveRestore()

Indicates that a matching pair of save/restore calls is expected next.

Calls are skipped until a call to Canvas.save is found, then, calls are skipped until the matching Canvas.restore call is found. If no matching pair of calls could be found, the matcher fails.

See also:

  • save, which indicates that a save is expected next.
  • restore, which indicates that a restore is expected next.

Implementation

void saveRestore();