From RAD Studio API Documentation
Jump to: navigation, search



TTetheringCustomStorage = class


class PASCALIMPLEMENTATION DECLSPEC_DRTTI TTetheringCustomStorage : public System::TObject


Type Visibility Source Unit Parent
class public
System.Tether.Manager System.Tether.Manager


Base class for persisting the pairing data of a manager between sessions.

By default, managers store the information about which remote managers are paired to them in memory. As a result, your manager can reconnect to a previously-paired remote manager, but only during the same session. If you restart your application, your manager looses its pairing data and cannot reconnect to previously-paired remote managers automatically, without using a password again if a password is required.

You can implement a subclass of TTetheringCustomStorage and assign an instance to the AStorage parameter of the OnRequestStorage event of your manager to provide persistence to your manager. Your implementation can store this data in a persistent media, such as a local file.

To implement a subclass of TTetheringCustomStorage, you must implement the following members that are responsible for saving and loading the pairing information:

See Also