友盟分享错误码

来源:互联网 发布:上海网络视听季 编辑:程序博客网 时间:2024/06/20 00:10
错误码switch (error.code) {                case UMSocialPlatformErrorType_Unknow:                    result = @"未知错误";                    break;                case UMSocialPlatformErrorType_NotSupport:                    result = @"不支持(url scheme 没配置,或者没有配置-ObjC, 或则SDK版本不支持或则客户端版本不支持";                    break;                case UMSocialPlatformErrorType_AuthorizeFailed:                    result = @"授权失败";                    break;                case UMSocialPlatformErrorType_ShareFailed:                    result = @"分享失败";                    break;                case UMSocialPlatformErrorType_RequestForUserProfileFailed:                    result = @"请求用户信息失败";                    break;                case UMSocialPlatformErrorType_ShareDataNil:                    result = @"分享内容为空";                    break;                case UMSocialPlatformErrorType_ShareDataTypeIllegal:                    result = @"分享内容不支持";                    break;                case UMSocialPlatformErrorType_CheckUrlSchemaFail:                    result = @"schemaurl fail";                    break;                case UMSocialPlatformErrorType_NotInstall:                    result = @"应用未安装";                    break;                case UMSocialPlatformErrorType_Cancel:                    result = @"您已取消分享";                    break;                case UMSocialPlatformErrorType_NotNetWork:                    result = @"网络异常";                    break;                case UMSocialPlatformErrorType_SourceError:                    result = @"第三方错误";                    break;                case UMSocialPlatformErrorType_ProtocolNotOverride:                    result = @"对应的UMSocialPlatformProvider的方法没有实现";                    break;                default:                    break;

0 0
原创粉丝点击