Enum WorkManager.Scheduling

    • Enum Constant Detail

      • CANCEL_SCHEDULED

        public static final WorkManager.Scheduling CANCEL_SCHEDULED
        Any other scheduled work equals to this one is removed from scheduling and canceled first, before this work is scheduled.
      • IF_NOT_SCHEDULED

        public static final WorkManager.Scheduling IF_NOT_SCHEDULED
        If there is a scheduled work equals to this one, then don't schedule the work.
      • IF_NOT_RUNNING_OR_SCHEDULED

        public static final WorkManager.Scheduling IF_NOT_RUNNING_OR_SCHEDULED
        If there is a running or scheduled work equals to this one, then don't schedule the work.
    • Method Detail

      • values

        public static WorkManager.Scheduling[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (WorkManager.Scheduling c : WorkManager.Scheduling.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static WorkManager.Scheduling valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null