PDRPluginResult Class Reference
Inherits from | NSObject |
---|---|
Declared in | PGPlugin.h |
+ resultWithStatus:messageAsString:
返回JS字符串
+ (PDRPluginResult *)resultWithStatus:(PDRCommandStatus)statusOrdinal messageAsString:(NSString *)theMessage
Parameters
statusOrdinal |
结果码 |
---|---|
theMessage |
字符串结果 |
Return Value
PDRPluginResult*
Declared In
PGPlugin.h
+ resultWithStatus:messageAsArray:
返回JS数组
+ (PDRPluginResult *)resultWithStatus:(PDRCommandStatus)statusOrdinal messageAsArray:(NSArray *)theMessage
Parameters
statusOrdinal |
结果码 |
---|---|
theMessage |
字符串结果 |
Return Value
PDRPluginResult*
Declared In
PGPlugin.h
+ resultWithStatus:messageToErrorObject:withMessage:
返回错误对象
+ (PDRPluginResult *)resultWithStatus:(PDRCommandStatus)statusOrdinal messageToErrorObject:(int)errorCode withMessage:(NSString *)message
Parameters
statusOrdinal |
结果码 |
---|---|
errorCode |
错误码 |
message |
错误描述 |
Return Value
PDRPluginResult*
Declared In
PGPlugin.h