BluetoothSilentPairingWhitelistingRemoveByName Method |
Remove from the whitelist a device with the given name.
Namespace:
Com.Datalogic.Decode
Assembly:
datalogic-xamarin-sdk (in datalogic-xamarin-sdk.dll) Version: 1.0.0.0
(1.0.0.0)
Syntax
public virtual bool RemoveByName (string deviceName);
Public Virtual Boolean RemoveByName (String deviceName);
Parameters
- deviceName
- Type: System.String
String - The device name can be provided as a plain string or as a regular expression (regex).
If a regex was used when adding devices to the whitelist, this method will remove the specific whitelisting rule for that regex pattern.
Return Value
Type: System.Boolean
boolean - Returns true if the whitelist entry associated with the given name or regex has been successfully removed;
otherwise, false .
Remarks
Remove from the whitelist a device with the given name.
If the entry doesn't exist, nothing happens and the method returns false.
If the device name is provided as a regular expression (regex),
the method will remove the whitelist entry that matches the given regex,
but only if the whitelist was previously configured with a regex for device names.
The ability to use a regex allows for the removal of a specific whitelisting rule that was previously added using a regex,
providing flexibility in managing device whitelisting based on patterns.
[Android Documentation]
See Also