Slide 19
Slide 19 text
Scala.js ଆ
import scala.scalajs.js
import scala.scalajs.js.annotation.JSGlobal
@js.native
@JSGlobal
object interop extends js.Object {
def requestCacheContents(urls: js.Array[String]): Unit = js.native
def publish(
dataBase64: String,
method: String,
endpoint: String,
headers: String
): Unit = js.native
def loadSlot(
index: Int,
src: String,
poster: String,
isImage: Boolean,
invertedSlotRotation: Int
): Unit = js.native
def flipSlot(index: Int): Unit = js.native
}
© 2019 CyberAgent, Inc. 19/35