Merge branch 'develop' of https://gitlab.verizon.com/BPHV_MIPS/mvm_core into feature/clientParameter-refactor

This commit is contained in:
Scott Pfeil 2023-11-15 13:44:05 -05:00
commit 64e5f9eb3d
4 changed files with 14 additions and 1 deletions

View File

@ -17,6 +17,9 @@
// Starts Loading. Every start loading call must be terminated with an end loading call. // Starts Loading. Every start loading call must be terminated with an end loading call.
- (void)startLoading; - (void)startLoading;
// Starts Loading, by showing the text in the center
- (void)startLoadingWith:(nullable NSAttributedString *) text;
// Returns if it is showing. // Returns if it is showing.
- (BOOL)isShowing; - (BOOL)isShowing;

View File

@ -52,6 +52,10 @@
#pragma mark - Overlay Functions #pragma mark - Overlay Functions
- (void)startLoading { - (void)startLoading {
[self startLoadingWith:nil];
}
- (void)startLoadingWith:(nullable NSAttributedString *)text {
[MVMCoreDispatchUtility performBlockOnMainThread:^{ [MVMCoreDispatchUtility performBlockOnMainThread:^{
@ -73,7 +77,7 @@
} }
// Restarts the loading animation. // Restarts the loading animation.
[self.loadingViewController startLoading]; [self.loadingViewController startLoadingWith:text];
if (self.animatingOut) { if (self.animatingOut) {

View File

@ -14,4 +14,8 @@
// Called when the view controller should stop animating loading. // Called when the view controller should stop animating loading.
- (void)stopLoading; - (void)stopLoading;
@optional
// Called when the view controller should animate loading with custom text
- (void)startLoadingWith:(nullable NSAttributedString *) text;
@end @end

View File

@ -17,6 +17,8 @@
// Returns if the manage currently contains the page with the page type. // Returns if the manage currently contains the page with the page type.
- (BOOL)containsPageWithPageType:(nullable NSString *)pageType; - (BOOL)containsPageWithPageType:(nullable NSString *)pageType;
- (nullable NSArray*)getAccessibilityElements; //AccessibilityElements that are owned by Manager.
@optional @optional
/// Notifies the manager that the controller received new data. /// Notifies the manager that the controller received new data.