未验证 提交 36be89da 编写于 作者: M Matt Carroll 提交者: GitHub

Added javadoc comments to FlutterActivity and FlutterFragmentActivity. (#12328)

上级 ecab4f8e
......@@ -187,7 +187,15 @@ import static io.flutter.embedding.android.FlutterActivityLaunchConfigs.SPLASH_S
* android:value="true"
* />
* }
* <p>
* <strong>Alternative Activity</strong>
* {@link FlutterFragmentActivity} is also available, which is similar to {@code FlutterActivity}
* but it extends {@code FragmentActivity}. You should use {@code FlutterActivity}, if possible,
* but if you need a {@code FragmentActivity} then you should use {@link FlutterFragmentActivity}.
*/
// A number of methods in this class have the same implementation as FlutterFragmentActivity. These
// methods are duplicated for readability purposes. Be sure to replicate any change in this class in
// FlutterFragmentActivity, too.
public class FlutterActivity extends Activity
implements FlutterActivityAndFragmentDelegate.Host,
LifecycleOwner {
......
......@@ -53,6 +53,9 @@ import static io.flutter.embedding.android.FlutterActivityLaunchConfigs.SPLASH_S
* is considered to be the standard, canonical implementation of a Flutter
* {@code Activity}.
*/
// A number of methods in this class have the same implementation as FlutterActivity. These methods
// are duplicated for readability purposes. Be sure to replicate any change in this class in
// FlutterActivity, too.
public class FlutterFragmentActivity extends FragmentActivity
implements SplashScreenProvider,
FlutterEngineProvider,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册