System.Tether.AppProfile.TTetheringAppProfile.DoAcceptResource
Delphi
procedure DoAcceptResource(const AProfileId: string; AResource: TCustomRemoteItem;var AcceptResource: Boolean); virtual;
C++
virtual void __fastcall DoAcceptResource(const System::UnicodeString AProfileId, TCustomRemoteItem* AResource, bool &AcceptResource);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | System.Tether.AppProfile.pas System.Tether.AppProfile.hpp |
System.Tether.AppProfile | TTetheringAppProfile |
Description
Called when there is an incoming resource to determine whether the incoming resource is accepted or not. See Handling Incoming Remote Resources.
This method receives the following parameters:
AProfileId
is the ProfileIdentifier of the remote application profile that sends the resource.AResource
is an instance of TCustomRemoteItem that contains properties that you can read to determine whether or not you accept the incoming remote resource.AcceptResource
is a boolean value that isTrue
by default. You can change this value toFalse
if you do not want to receive the incoming resource.
If there is an event handler associated with the OnAcceptResource event, DoAcceptResource calls that event handler.