public class

LineApiClientBuilder

extends Object
java.lang.Object
   ↳ com.linecorp.linesdk.api.LineApiClientBuilder

Class Overview

Represents a builder for creating LineApiClient objects with the desired settings.

Summary

Public Constructors
LineApiClientBuilder(Context context, String channelId)
Constructs a builder for a LineApiClient object with the given channelId.
Public Methods
LineApiClientBuilder apiBaseUri(Uri apiBaseUri)
LineApiClient build()
Creates a LineApiClient instance.
LineApiClientBuilder disableEncryptorPreparation()
Disables the SDK's feature that prepares an encryptor.
LineApiClientBuilder disableTokenAutoRefresh()
Disables the SDK's feature that automatically refreshes the access token.
LineApiClientBuilder openidDiscoveryDocumentUrl(Uri openidDiscoveryDocumentUrl)
Sets the API base URI.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public LineApiClientBuilder (Context context, String channelId)

Constructs a builder for a LineApiClient object with the given channelId.

Parameters
context The Android context.
channelId The channel ID.
Throws
IllegalArgumentException If channelId is null.

Public Methods

public LineApiClientBuilder apiBaseUri (Uri apiBaseUri)

public LineApiClient build ()

Creates a LineApiClient instance.

Returns

public LineApiClientBuilder disableEncryptorPreparation ()

Disables the SDK's feature that prepares an encryptor.

Returns

public LineApiClientBuilder disableTokenAutoRefresh ()

Disables the SDK's feature that automatically refreshes the access token.

Returns

public LineApiClientBuilder openidDiscoveryDocumentUrl (Uri openidDiscoveryDocumentUrl)

Sets the API base URI.

Parameters
openidDiscoveryDocumentUrl The URI to set.
Returns