com.groupdocs.viewer.licensing

Class License



  • public class License
    extends Object

    Class License.

    • Constructor Detail

      • License

        public License()
    • Method Detail

      • isValidLicense

        public static boolean isValidLicense()

        Gets a value indicating whether this instance is valid license.

      • setLicense

        public void setLicense(InputStream licenseStream)

        Licenses the component.

        The following example demonstrates how to set a license passing Stream of the license file.
        Parameters:
        licenseStream - The license stream.
      • setLicense

        public void setLicense(String licensePath)

        Licenses the Viewer.

        The following example demonstrates how to set a license passing a path to the license file.
        Parameters:
        licensePath - a String object.