License

License class

Provides methods to license the component.

In this example, an attempt will be made to find a license file named MyLicense.lic in the folder that contains the component, in the folder that contains the calling assembly, in the folder of the entry assembly and then in the embedded resources of the calling assembly.

License

NameDescription
License()Initializes a new instance of this class. In this example, an attempt will be made to find a license file named MyLicense.lic in the folder that contains the component, in the folder that contains the calling assembly, in the folder of the entry assembly and then in the embedded resources of the calling assembly.

Returns: License


getVersion

NameDescription
getVersion ()Returns version of Aspose.Slides for Java.

Returns: String


isLicensed

NameDescription
isLicensed ()

Returns: boolean


resetLicense

NameDescription
resetLicense ()Reset the license Use this function to reset license in component License license = new License(); license.resetLicense();

setLicenseFromStream

NameDescription
setLicenseFromStream (License, ReadStream, Function)Licenses the component. In this example, an attempt will be made to find a license file named MyLicense.lic in the folder that contains the component, in the folder that contains the calling assembly, in the folder of the entry assembly and then in the embedded resources of the calling assembly.

Parameters:

NameTypeDescription
licenseLicenselink to self
streamReadStreamA stream that contains the license. Use null to switch to evaluation mode.
callbackFunctioncallback(error, Returns) - Callback to be called when the method has completed

setLicense

NameDescription
setLicense (String)Licenses the component. In this example, an attempt will be made to find a license file named MyLicense.lic in the folder that contains the component, in the folder that contains the calling assembly, in the folder of the entry assembly and then in the embedded resources of the calling assembly.

Parameters:

NameTypeDescription
namePathStringCan be a full or short file name or name of an embedded resource. Use an empty string to switch to evaluation mode.