NSAppPresentationOptions class

Constants that control the presentation of the app, typically for fullscreen apps such as games or kiosks.

Please note that enableWindowDelegate needs to be set to true in the WindowManipulator.initialize call for this class to work.

Usage example:

NSAppPresentationOptions.from({
  NSAppPresentationOption.autoHideToolbar,
  NSAppPresentationOption.fullScreen,
  NSAppPresentationOption.autoHideMenuBar,
  NSAppPresentationOption.hideDock,
}).applyAsFullScreenPresentationOptions();

Constructors

NSAppPresentationOptions.from(Iterable<NSAppPresentationOption> iterable)
Creates a NSAppPresentationOptions instance from any collectible.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
options Set<NSAppPresentationOption>
The options contained within this object.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

applyAsFullScreenPresentationOptions({bool force = false}) → void
Applies these NSAppPresentationOptions to as fullscreen presentation options.
assertRestrictions() → void
Throws an assertion error if this instance violates any of the following restrictions:
contains(NSAppPresentationOption option) bool
Returns whether this instance contains option.
containsAll(Iterable<NSAppPresentationOption> options) bool
Returns whether this instance contains all options.
insert(NSAppPresentationOption option) NSAppPresentationOptions
Returns a NSAppPresentationOptions with option inserted.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(NSAppPresentationOption option) NSAppPresentationOptions
Returns a NSAppPresentationOptions with option removed.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

empty NSAppPresentationOptions
An empty NSAppPresentationOptions instance.
getter/setter pair