Lines Matching defs:lifecycle
18 import com.bumptech.glide.manager.Lifecycle;
32 * A class for managing and starting requests for Glide. Can use activity, fragment and connectivity lifecycle events to
34 * built in Activity and Fragment lifecycle handling, use the static Glide.load methods with your Fragment or Activity.
44 private final Lifecycle lifecycle;
50 public RequestManager(Context context, Lifecycle lifecycle) {
51 this(context, lifecycle, new RequestTracker(), new ConnectivityMonitorFactory());
54 RequestManager(Context context, final Lifecycle lifecycle, RequestTracker requestTracker,
57 this.lifecycle = lifecycle;
67 // ourselves as a lifecycle listener by posting to the main thread. This should be entirely safe.
72 lifecycle.addListener(RequestManager.this);
76 lifecycle.addListener(this);
78 lifecycle.addListener(connectivityMonitor);
146 * Lifecycle callback that registers for connectivity events (if the android.permission.ACCESS_NETWORK_STATE
156 * Lifecycle callback that unregisters for connectivity events (if the android.permission.ACCESS_NETWORK_STATE
165 * Lifecycle callback that cancels all in progress requests and clears and recycles resources for all completed
368 fileDescriptorModelLoader, context, glide, requestTracker, lifecycle, optionsApplier));
585 glide, requestTracker, lifecycle, optionsApplier));
608 loader, context, glide, requestTracker, lifecycle, optionsApplier))
634 requestTracker, lifecycle, optionsApplier));
719 modelLoader, dataClass, resourceClass, requestTracker, lifecycle, optionsApplier));