No public description
PiperOrigin-RevId: 563163901
This commit is contained in:
parent
967007f250
commit
e58ec2d039
|
@ -39,16 +39,16 @@ typedef NS_ENUM(NSUInteger, MPPRunningMode) {
|
||||||
} NS_SWIFT_NAME(RunningMode);
|
} NS_SWIFT_NAME(RunningMode);
|
||||||
|
|
||||||
NS_INLINE NSString *MPPRunningModeDisplayName(MPPRunningMode runningMode) {
|
NS_INLINE NSString *MPPRunningModeDisplayName(MPPRunningMode runningMode) {
|
||||||
if (runningMode > MPPRunningModeLiveStream) {
|
switch (runningMode) {
|
||||||
|
case MPPRunningModeImage:
|
||||||
|
return @"Image";
|
||||||
|
case MPPRunningModeVideo:
|
||||||
|
return @"Video";
|
||||||
|
case MPPRunningModeLiveStream:
|
||||||
|
return @"Live Stream";
|
||||||
|
default:
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
NSString *displayNameMap[MPPRunningModeLiveStream + 1] = {
|
|
||||||
[MPPRunningModeImage] = @"Image",
|
|
||||||
[MPPRunningModeVideo] = @"Video",
|
|
||||||
[MPPRunningModeLiveStream] = @"Live Stream"};
|
|
||||||
|
|
||||||
return displayNameMap[runningMode];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
NS_ASSUME_NONNULL_END
|
NS_ASSUME_NONNULL_END
|
||||||
|
|
Loading…
Reference in New Issue
Block a user