Interface ActivityControlSurface

    • Method Detail

      • detachFromActivityForConfigChanges

        void detachFromActivityForConfigChanges()
        Call this method from the Activity that is attached to this ActivityControlSurfaces's FlutterEngine when the Activity is about to be destroyed due to configuration changes.

        This method gives each ActivityAware plugin an opportunity to clean up its references before the is destroyed.

      • detachFromActivity

        void detachFromActivity()
        Call this method from the Activity that is attached to this ActivityControlSurfaces's FlutterEngine when the Activity is about to be destroyed for non-configuration-change reasons.

        This method gives each ActivityAware plugin an opportunity to clean up its references before the is destroyed.

      • onRequestPermissionsResult

        boolean onRequestPermissionsResult​(int requestCode,
                                           @NonNull
                                           String[] permissions,
                                           @NonNull
                                           int[] grantResult)
        Call this method from the Activity that is attached to this ActivityControlSurface's FlutterEngine and the associated method in the Activity is invoked.

        Returns true if one or more plugins utilized this permission result.

      • onActivityResult

        boolean onActivityResult​(int requestCode,
                                 int resultCode,
                                 @Nullable
                                 Intent data)
        Call this method from the Activity that is attached to this ActivityControlSurface's FlutterEngine and the associated method in the Activity is invoked.

        Returns true if one or more plugins utilized this Activity result.

      • onNewIntent

        void onNewIntent​(@NonNull
                         Intent intent)
        Call this method from the Activity that is attached to this ActivityControlSurface's FlutterEngine and the associated method in the Activity is invoked.
      • onUserLeaveHint

        void onUserLeaveHint()
        Call this method from the Activity that is attached to this ActivityControlSurface's FlutterEngine and the associated method in the Activity is invoked.
      • onSaveInstanceState

        void onSaveInstanceState​(@NonNull
                                 Bundle bundle)
        Call this method from the Activity or Fragment that is attached to this ActivityControlSurface's FlutterEngine when the associated method is invoked in the Activity or Fragment.