KHEither

data class KHEither<T, U>(val left: T, val right: U)

Represents a disjoint union entity, generally used to depict objects that are supported on both Android and Apple platforms but use different return types internally.

At any given point in time, only one of these values will be available, hence the member properties isLeft and isRight will come in handy in such cases.

Parameters

left

The unit represented by Android

right

The unit represented by Apple

Constructors

Link copied to clipboard
constructor(left: T, right: U)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val left: T
Link copied to clipboard
val right: U