System.Bluetooth.TBluetoothLEManager.ForceRefreshCachedDevices

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ForceRefreshCachedDevices: Boolean read FForceRefreshCachedDevices write FForceRefreshCachedDevices;

C++

__property bool ForceRefreshCachedDevices = {read=FForceRefreshCachedDevices, write=FForceRefreshCachedDevices, nodefault};

Properties

Type Visibility Source Unit Parent
property public
System.Bluetooth.pas
System.Bluetooth.hpp
System.Bluetooth TBluetoothLEManager

Description

Indicates whether the discovery of services of a remote device always retrieves the list of available services directly from the remote devices (True) or allows the run-time platform to return a cached list of services (False).

Platform Support

This property only affects Android.

When you discover a remote device for the first time, Android caches its services. On later discoveries, Android returns the cached list of services instead of requesting a new list of services from the remote device.

This is fine when your application reads services from a device that always provides the same services. However, if you are developing a GATT server and you are changing its services, you may want to change the value of ForceRefreshCachedDevices to True during development.

Other platforms do not cache the list of services of remote devices.

See Also