-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Abstracting Activity logic from Dev Loading View (#35256)
Summary: Pull Request resolved: #35256 Changelog: [General][Added] - Making Dev Loading View cross platform by abstracting out the activity/context logic from the controller in a polymorph class. Reviewed By: rshest Differential Revision: D40908923 fbshipit-source-id: db8e94f8ded5ffe0deeb88335cd7f3d1bf87243a
- Loading branch information
1 parent
29caed2
commit 1a4fa92
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...Android/src/main/java/com/facebook/react/devsupport/interfaces/DevLoadingViewManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
package com.facebook.react.devsupport.interfaces; | ||
|
||
import androidx.annotation.Nullable; | ||
|
||
/** Interface to display loading messages on top of the screen. */ | ||
public interface DevLoadingViewManager { | ||
|
||
void showMessage(final String message); | ||
|
||
void updateProgress( | ||
final @Nullable String status, final @Nullable Integer done, final @Nullable Integer total); | ||
|
||
void hide(); | ||
} |