FMX.InAppPurchase.IFMXInAppPurchaseService.RemoveComponent
Delphi
procedure RemoveComponent(const Component: TCustomInAppPurchase);
C++
virtual void __fastcall RemoveComponent(TCustomInAppPurchase* const Component) = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FMX.InAppPurchase.pas FMX.InAppPurchase.hpp |
FMX.InAppPurchase | IFMXInAppPurchaseService |
Description
Removes the specified instance from the list of instances of TCustomInAppPurchase and subclasses that the platform service holds.
If you subclass TCustomInAppPurchase but you do not inherit its destructor, remember to call this method in your destructor:
destructor MyComponent.Destroy;
begin
if Assigned(FInAppPurchaseService) then
FInAppPurchaseService.RemoveComponent(Self);
FInAppPurchaseService := nil;
end;