com.samsung.android.penup
Class PenupClient
- java.lang.Object
-
- com.samsung.android.penup.PenupClient
-
public final class PenupClient extends java.lang.Object
This class authenticates a user and manages the session for PEN.UP.- Since:
- PEN.UP 1.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static class
PenupClient.Builder
This class configures and builds a PenupClient instance.static interface
PenupClient.ConnectionCallback
This interface receives a response for the connection request as an asynchronous callback.
-
Method Summary
Methods Modifier and Type Method and Description void
connect()
Connects the client to the PEN.UP service.void
disconnect()
Closes the connection to the PEN.UP service.boolean
isConnected()
Checks whether the client is connected to the PEN.UP service or not.
-
-
-
Method Detail
-
connect
public void connect()
Connects the client to the PEN.UP service.
PenupClient.ConnectionCallback.onConnected()
is called when the connection has successfully completed,
elsePenupClient.ConnectionCallback.onConnectionFailed(ResponseResult)
is called.
Once connected, the connection can be kept for 30 days.
If the PEN.UP application whose version is 1.5.0 or above is installed and logged in, Single Sign-On is automatically enabled and your application is connected with the same account.- Since:
- PEN.UP 1.0
-
disconnect
public void disconnect()
Closes the connection to the PEN.UP service.- Since:
- PEN.UP 1.0
-
isConnected
public boolean isConnected()
Checks whether the client is connected to the PEN.UP service or not.- Returns:
true
if the client is connected to the PEN.UP service,
false
otherwise- Since:
- PEN.UP 1.0
-
-