Class DataTransportOptions.Builder

    • Constructor Detail

      • Builder

        public Builder()
        Creates a new builder.
    • 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.