ConstraintProxyUpdateReceiver

open class ConstraintProxyUpdateReceiver : BroadcastReceiver
kotlin.Any
   ↳ android.content.BroadcastReceiver
   ↳ androidx.work.impl.background.systemalarm.ConstraintProxyUpdateReceiver

The BroadcastReceiver responsible for updating constraint proxies.

Summary

Public constructors

The BroadcastReceiver responsible for updating constraint proxies.

Public methods
open static Intent!
newConstraintProxyUpdateIntent(context: Context!, batteryNotLowProxyEnabled: Boolean, batteryChargingProxyEnabled: Boolean, storageNotLowProxyEnabled: Boolean, networkStateProxyEnabled: Boolean)

open Unit
onReceive(@NonNull context: Context, @Nullable intent: Intent?)

Public constructors

ConstraintProxyUpdateReceiver

ConstraintProxyUpdateReceiver()

The BroadcastReceiver responsible for updating constraint proxies.

Public methods

newConstraintProxyUpdateIntent

open static fun newConstraintProxyUpdateIntent(
    context: Context!,
    batteryNotLowProxyEnabled: Boolean,
    batteryChargingProxyEnabled: Boolean,
    storageNotLowProxyEnabled: Boolean,
    networkStateProxyEnabled: Boolean
): Intent!
Parameters
batteryNotLowProxyEnabled Boolean: true if needs to be
batteryChargingProxyEnabled Boolean: true if needs to be
storageNotLowProxyEnabled Boolean: true if needs to be
networkStateProxyEnabled Boolean: true if needs to be
Return
Intent! an Intent with information about the constraint proxies which need to be enabled.

onReceive

open fun onReceive(
    @NonNull context: Context,
    @Nullable intent: Intent?
): Unit