Class ConnectionMethodBle


  • public class ConnectionMethodBle
    extends ConnectionMethod
    Connection method for BLE.
    • Constructor Detail

      • ConnectionMethodBle

        public ConnectionMethodBle​(boolean supportsPeripheralServerMode,
                                   boolean supportsCentralClientMode,
                                   @Nullable
                                   java.util.UUID peripheralServerModeUuid,
                                   @Nullable
                                   java.util.UUID centralClientModeUuid)
        Creates a new connection method for BLE.
        Parameters:
        supportsPeripheralServerMode - whether mdoc peripheral mode is supported.
        supportsCentralClientMode - whether mdoc central client mode is supported.
        peripheralServerModeUuid - the UUID to use for mdoc peripheral server mode.
        centralClientModeUuid - the UUID to use for mdoc central client mode.
    • Method Detail

      • getSupportsPeripheralServerMode

        public boolean getSupportsPeripheralServerMode()
        Gets whether the connection method indicates that mdoc peripheral server mode is enabled.
        Returns:
        the value.
      • getSupportsCentralClientMode

        public boolean getSupportsCentralClientMode()
        Gets whether the connection method indicates that mdoc central client mode is enabled.
        Returns:
        the value.
      • getPeripheralServerModeUuid

        @Nullable
        public java.util.UUID getPeripheralServerModeUuid()
        Gets the UUID used for mdoc peripheral server mode, if any.
        Returns:
        the value or null.
      • getCentralClientModeUuid

        @Nullable
        public java.util.UUID getCentralClientModeUuid()
        Gets the UUID used for mdoc central client mode, if any.
        Returns:
        the value or null.
      • toString

        @NonNull
        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object