code: public static AndroidLifecycleScopeProvider from(
        Lifecycle lifecycle, CorrespondingEventsFunction<Lifecycle.Event> boundaryResolver) {
      return new AndroidLifecycleScopeProvider(lifecycle, boundaryResolver);
    }
docs: Creates a {@link AndroidLifecycleScopeProvider} for Android Lifecycles.
  
  @param lifecycle the lifecycle to scope for.
  @param boundaryResolver function that resolves the event boundary.
  @return a {@link AndroidLifecycleScopeProvider} against this lifecycle.