Class AppUsageInfo

  • All Implemented Interfaces:

    
    public class AppUsageInfo
    extends UsageInfo
                        

    A helper class that embeds usage event information and provides chained setter methods to set values with mobile services-specific keys.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

      • AppUsageInfo

        AppUsageInfo()

        Constructs a AppUsageInfo instance. The embedded HashMap will be created.

    • Method Detail

      • screen

        @NonNull() AppUsageInfo screen(@NonNull() String data)

        Adds the data for SCREEN.

        Parameters:
        data - The string data associated with the key
        Returns:

        This instance.

      • element

        @NonNull() AppUsageInfo element(@NonNull() String data)

        Adds the data for ELEMENT.

        Parameters:
        data - The string data associated with the key
        Returns:

        This instance.

      • view

        @NonNull() AppUsageInfo view(@NonNull() String data)

        Adds the data for VIEW.

        Parameters:
        data - The string data associated with the key
        Returns:

        This instance.

      • behavior

        @NonNull() AppUsageInfo behavior(@NonNull() String data)

        Adds the data for BEHAVIOUR.

        Parameters:
        data - The string data associated with the key
        Returns:

        This instance.

      • action

        @NonNull() AppUsageInfo action(@NonNull() String data)

        Adds the data for ACTION.

        Parameters:
        data - The string data associated with the key
        Returns:

        This instance.

      • setCase

        @NonNull() AppUsageInfo setCase(@NonNull() String data)

        Adds the data for CASE.

        Parameters:
        data - The string data associated with the key
        Returns:

        This instance.

      • type

        @NonNull() AppUsageInfo type(@NonNull() String data)

        Adds the data for TYPE.

        Parameters:
        data - The string data associated with the key
        Returns:

        This instance.

      • result

        @NonNull() AppUsageInfo result(@NonNull() String data)

        Adds the data for RESULT.

        Parameters:
        data - The string data associated with the key
        Returns:

        This instance.

      • category

        @NonNull() AppUsageInfo category(@NonNull() String data)

        Adds the data for CATEGORY.

        Parameters:
        data - The string data associated with the key
        Returns:

        This instance.

      • key

        @NonNull() AppUsageInfo key(@NonNull() String data)

        Adds the data for KEY.

        Parameters:
        data - The string data associated with the key
        Returns:

        This instance.

      • unit

        @NonNull() AppUsageInfo unit(@NonNull() String data)

        Adds the data for UNIT.

        Parameters:
        data - The string data associated with the key
        Returns:

        This instance.

      • measurement

        @NonNull() AppUsageInfo measurement(@NonNull() String data)

        Adds the data for MEASUREMENT.

        Parameters:
        data - The string data associated with the key
        Returns:

        This instance.

      • value

        @NonNull() AppUsageInfo value(@NonNull() String data)

        Adds the data for VALUE.

        Parameters:
        data - The string data associated with the key
        Returns:

        This instance.

      • duration

        @NonNull() AppUsageInfo duration(@NonNull() String data)

        Adds the data for DURATION.

        Parameters:
        data - The string data associated with the key
        Returns:

        This instance.

      • others

        @NonNull() AppUsageInfo others(@NonNull() String data)

        Adds the data for OTHERS.

        Parameters:
        data - The string data associated with the key
        Returns:

        This instance.