NetworkNotRoamingController

class NetworkNotRoamingController : ConstraintController<NetworkState>
kotlin.Any
   ↳ androidx.work.impl.constraints.controllers.ConstraintController<androidx.work.impl.constraints.NetworkState>
   ↳ androidx.work.impl.constraints.controllers.NetworkNotRoamingController

A ConstraintController for monitoring that the network connection is not roaming.

Summary

Public constructors

A ConstraintController for monitoring that the network connection is not roaming.

Public methods
Boolean

Boolean

Check for not-roaming constraint on API 24+, when JobInfo#NETWORK_TYPE_NOT_ROAMING was added, to be consistent with JobScheduler functionality.

Inherited functions
Inherited properties

Public constructors

NetworkNotRoamingController

NetworkNotRoamingController(tracker: ConstraintTracker<NetworkState>)

A ConstraintController for monitoring that the network connection is not roaming.

Public methods

hasConstraint

fun hasConstraint(workSpec: WorkSpec): Boolean

isConstrained

fun isConstrained(value: NetworkState): Boolean

Check for not-roaming constraint on API 24+, when JobInfo#NETWORK_TYPE_NOT_ROAMING was added, to be consistent with JobScheduler functionality.