Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

IsUnlocked


...

Checks the product activation status of a plugin. If AllowUnlock is true, the user is prompted to Activate if needed.

...

    1. Create a New Form application
    2. Add a button to the form
    3. Add PlanSwift to reference (Planswift9_tlb in the uses)
    4. Copy code to button onclick event


API

...

Calls

Delphi

Code Block
languagedelphi
themeRDark
firstline1
titleUsing PlanSwift Object Model
linenumberstrue
collapsetrue
PlanSwift Code:


if not PlanSwift.IsUnlocked('MyPlugin', 1, 0, True) then
  begin
    Exit;
  end;


FreshDesk Code:


procedure TForm1.psUnlocked(Sender: TObject);
var
  ps: IPlanSwift;
begin
  ps := CoPlanswift.Create;
  if ps.IsUnlocked('SDK Sample',1,0,false) then
    ShowMessage('You have unlocked your version')
  else
    ShowMessage('You do not have a license for this plugin');
  ps := nil;
end;

C#

Code Block
languagec#
themeRDark
firstline1
titleUsing IItem Object Model
linenumberstrue
collapsetrue
public class PlanswiftApi
{
    private PlanSwift Planswift { get; }
    public PlanSwiftApi()
    {
        Planswift = new PlanSwift();
    }
}


Code Block
languagec#
themeRDark
firstline1
titleUsing PlanSwift Object Model
linenumberstrue
Coming soon

VB/VBA (OLE)

Code Block
languagevb
firstline1
titleUsing IItem Object Model
linenumberstrue
Coming soon


Code Block
languagevb
firstline1
titleUsing PlanSwift Object Model
linenumberstrue
Coming soon