Updated iOS error messages
This commit is contained in:
parent
dffb73e4eb
commit
c9b00b07e0
|
@ -52,20 +52,23 @@ static const NSInteger kMPPOrientationDegreesLeft = -270;
|
||||||
case MPPRunningModeImage:
|
case MPPRunningModeImage:
|
||||||
case MPPRunningModeVideo: {
|
case MPPRunningModeVideo: {
|
||||||
if (packetsCallback) {
|
if (packetsCallback) {
|
||||||
[MPPCommonUtils createCustomError:error
|
[MPPCommonUtils
|
||||||
withCode:MPPTasksErrorCodeInvalidArgumentError
|
createCustomError:error
|
||||||
description:@"The vision task is in image or video mode, a "
|
withCode:MPPTasksErrorCodeInvalidArgumentError
|
||||||
@"user-defined result callback should not be provided."];
|
description:@"The vision task is in image or video mode. The delegate must not be set in the task's options."];
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case MPPRunningModeLiveStream: {
|
case MPPRunningModeLiveStream: {
|
||||||
if (!packetsCallback) {
|
if (!packetsCallback) {
|
||||||
[MPPCommonUtils createCustomError:error
|
[MPPCommonUtils
|
||||||
withCode:MPPTasksErrorCodeInvalidArgumentError
|
createCustomError:error
|
||||||
description:@"The vision task is in live stream mode, a user-defined "
|
withCode:MPPTasksErrorCodeInvalidArgumentError
|
||||||
@"result callback must be provided."];
|
description:
|
||||||
|
@"The vision task is in live stream mode. An object must be set as the "
|
||||||
|
@"delegate of the task in its options to ensure asynchronous delivery of "
|
||||||
|
@"results."];
|
||||||
return nil;
|
return nil;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user