Package com.android.identity
Class DataTransportOptions.Builder
- java.lang.Object
-
- com.android.identity.DataTransportOptions.Builder
-
- Enclosing class:
- DataTransportOptions
public static class DataTransportOptions.Builder extends java.lang.Object
A builder forDataTransportOptions
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Creates a new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataTransportOptions
build()
Builds theDataTransportOptions
.DataTransportOptions.Builder
setBleClearCache(boolean bleClearCache)
Sets whether to clear the BLE Service Cache before service discovery when acting as a GATT Client.DataTransportOptions.Builder
setBleUseL2CAP(boolean useL2CAP)
Sets the preference for use BLE L2CAP transmission profile.
-
-
-
Method Detail
-
setBleUseL2CAP
public DataTransportOptions.Builder setBleUseL2CAP(boolean useL2CAP)
Sets the preference for use BLE L2CAP transmission profile.Use L2CAP if supported by the OS and remote mdoc.
The default value for this is false.
- Parameters:
useL2CAP
- indicates if it should use L2CAP socket if available.- Returns:
- the builder.
-
setBleClearCache
public DataTransportOptions.Builder setBleClearCache(boolean bleClearCache)
Sets whether to clear the BLE Service Cache before service discovery when acting as a GATT Client.The default value for this is false.
- Parameters:
bleClearCache
- indicates if the BLE Service Cache should be cleared.- Returns:
- the builder.
-
build
@NonNull public DataTransportOptions build()
Builds theDataTransportOptions
.- Returns:
- the built
DataTransportOptions
instance.
-
-