Interface FlutterView.Provider

All Known Implementing Classes:
FlutterActivity, FlutterActivityDelegate, FlutterFragmentActivity
Enclosing class:
FlutterView

public static interface FlutterView.Provider
Interface for those objects that maintain and expose a reference to a FlutterView (such as a full-screen Flutter activity).

This indirection is provided to support applications that use an activity other than FlutterActivity (e.g. Android v4 support library's FragmentActivity). It allows Flutter plugins to deal in this interface and not require that the activity be a subclass of FlutterActivity.

  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a reference to the Flutter view maintained by this object.
  • Method Details

    • getFlutterView

      FlutterView getFlutterView()
      Returns a reference to the Flutter view maintained by this object. This may be null.
      Returns:
      a reference to the Flutter view maintained by this object.