Warning messages are returned in the above stated order of preference. This means that if a license will expire in less than two weeks and is a demo license, only the warning code regarding the demo license will be returned.
The programmer of the application that is controlled by Silk Meter can decide how to handle warning codes. For example, the application can disable functionality or display additional disclaimers for a demo license or warning message if the license is set to expire soon. The method warningReason returns a string describing the warning.
Warning Code | Description |
---|---|
SGME_NO_WARNING | The license does not have a warning code. The license may still be invalid, check the error code. |
SGME_WARNING_RELAXED_EXCEEDED | The number of available licenses for this product has been exceeded, but the license is in relaxed mode and allows continued operation. |
SGME_WARNING_DEMO_LICENSE | The policy for this product is only a demo policy. |
SGME_WARNING_LAPTOP_LICENSE | The policy for this product is only a laptop policy. |
SGME_WARNING_EXPIRING_SOON | The policy for this product will expire in less than 14 days. |