Class UsageClient


  • public class UsageClient
    extends Object

    The UsageClient handles sending usage information about the the application to the Gluon CloudLink Usage Analytics service. The information that is being sent never contains personal information. Only generic details about the device like the platform, the version of the platform, information about the application, etc. will be provided to Gluon CloudLink.

    Note: The UsageClient will gather information about the device by making use of the DeviceService Please make sure that the device plugin has been enabled in your Gluon Mobile application build configuration:

    
        <dependency>
            <groupId>com.gluonhq.attach</groupId>
            <artifactId>device</artifactId>
            <version>${attach.version}</version>
        </dependency>
        ...
        <plugin>
          <groupId>com.gluonhq</groupId>
          <artifactId>client-maven-plugin</artifactId>
          <version>${client.plugin.version}</version>
          <configuration>
            <attachList>
              <list>device</list>
            </attachList>
          </configuration>
        </plugin>
     
    • Constructor Detail

      • UsageClient

        public UsageClient()
    • Method Detail

      • enable

        public void enable()
        Enable the UsageClient for this Gluon Mobile application. A call to this method will sent analytics information about the device to the Gluon CloudLink Usage Analytics service.