Platform

object Platform
Companion:
class
trait Sum
trait Mirror
class Object
trait Matchable
class Any

Type members

Classlikes

case object JS extends Platform
case object JVM extends Platform
case object Native extends Platform

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

def apply()(implicit d: DefaultBackend[Any, Platform]): Platform

Returns the current runtime plaform. In general, it is preferable to handle platform-specific code at compile time, but this can be helpful for small changes.

Returns the current runtime plaform. In general, it is preferable to handle platform-specific code at compile time, but this can be helpful for small changes.