LineScope

class LineScope(val code: String)

A LINE Login permission scope.

Deliberately an open value type rather than an enum: LINE adds scopes over time, and both native SDKs model them as open values too (Scope(String) on Android, LoginPermission on iOS). An enum here would mean a release of this library for every scope LINE invents.

The three scopes exposed as constants are the ones available to every channel. Anything else — including scopes that need extra approval — goes through the constructor:

LineLoginRequest(scopes = setOf(LineScope.Profile, LineScope.OpenId, LineScope("openchat")))

Constructors

Link copied to clipboard
constructor(code: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The wire value, exactly as LINE defines it.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String