IsUnlocked
...
Checks the product activation status of a plugin. If AllowUnlock is true, the user is prompted to Activate if needed.
...
- Create a New Form application
- Add a button to the form
- Add PlanSwift to reference (Planswift9_tlb in the uses)
- Copy code to button onclick event
API
...
Calls
Delphi
Code Block |
---|
language | delphi |
---|
theme | RDark |
---|
firstline | 1 |
---|
title | Using PlanSwift Object Model |
---|
linenumbers | true |
---|
collapse | true |
---|
|
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 |
---|
language | c# |
---|
theme | RDark |
---|
firstline | 1 |
---|
title | Using IItem Object Model |
---|
linenumbers | true |
---|
collapse | true |
---|
|
public class PlanswiftApi
{
private PlanSwift Planswift { get; }
public PlanSwiftApi()
{
Planswift = new PlanSwift();
}
} |
Code Block |
---|
language | c# |
---|
theme | RDark |
---|
firstline | 1 |
---|
title | Using PlanSwift Object Model |
---|
linenumbers | true |
---|
|
Coming soon |
VB/VBA (OLE)
Code Block |
---|
language | vb |
---|
firstline | 1 |
---|
title | Using IItem Object Model |
---|
linenumbers | true |
---|
|
Coming soon |
Code Block |
---|
language | vb |
---|
firstline | 1 |
---|
title | Using PlanSwift Object Model |
---|
linenumbers | true |
---|
|
Coming soon |