session-ios/SignalShareExtension/utils/ShareAppExtensionContext.m

46 lines
882 B
Objective-C

//
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
//
#import "ShareAppExtensionContext.h"
NS_ASSUME_NONNULL_BEGIN
@implementation ShareAppExtensionContext
- (BOOL)isMainApp
{
return NO;
}
- (BOOL)isMainAppAndActive
{
return NO;
}
- (UIApplicationState)mainApplicationState
{
OWSFail(@"%@ called %s.", self.logTag, __PRETTY_FUNCTION__);
return UIApplicationStateBackground;
}
- (UIBackgroundTaskIdentifier)beginBackgroundTaskWithExpirationHandler:
(BackgroundTaskExpirationHandler)expirationHandler
{
return UIBackgroundTaskInvalid;
}
- (void)endBackgroundTask:(UIBackgroundTaskIdentifier)backgroundTaskIdentifier
{
OWSAssert(backgroundTaskIdentifier == UIBackgroundTaskInvalid);
}
- (void)setMainAppBadgeNumber:(NSInteger)value
{
OWSFail(@"%@ called %s.", self.logTag, __PRETTY_FUNCTION__);
}
@end
NS_ASSUME_NONNULL_END