All Downloads are FREE. Search and download functionalities are using the official Maven repository.

chrome.system.display.bindings.Display.scala Maven / Gradle / Ivy

package chrome.system.display.bindings

import chrome.events.bindings.Event

import scala.scalajs.js
import scala.scalajs.js.annotation.JSGlobal
import scala.scalajs.js.{UndefOr, native, undefined}

@js.native
@JSGlobal("chrome.system.display")
object Display extends js.Object {

  type ID = String
  val onDisplayChanged: Event[js.Function0[_]] = native

  def getInfo(callback: js.Function1[js.Array[DisplayInfo], _]): Unit = native

  def setDisplayProperties(
      id: ID,
      info: DisplayProperties,
      callback: UndefOr[js.Function0[_]] = undefined): Unit = native

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy