ifish/Ifish/UMSocial/UMSocialUI/UShareUI.framework/Headers/UMSocialUIManager.h

73 lines
2.6 KiB
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// UMSocialUIManager.h
// UMSocialSDK
//
// Created by umeng on 16/8/10.
// Copyright © 2016年 UMeng+. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "UMSocialShareUIConfig.h"
@interface UMSocialUIManager : NSObject
#pragma mark - 6.1新增API
/**
* 显示分享面板
*
* @param sharePlatformSelectionBlock 回调block
*/
+ (void)showShareMenuViewInWindowWithPlatformSelectionBlock:(UMSocialSharePlatformSelectionBlock)sharePlatformSelectionBlock;
/**
* 设置预定义平台
*
* @param preDefinePlatforms 预定于平台数组@see UMSocialPlatformType.
* 开发者需要自己预定义自己需要的平台。
* 此函数需要在UMSocialSharePlatformSelectionBlock之前调用
* 传入的平台必须是合法并且是core模块已经检测到的已经存在的平台不然会被过滤掉(此条款是上线appStore审核的条件开发者必须注意)
*/
+(void)setPreDefinePlatforms:(NSArray*)preDefinePlatforms;
/**
* 设置用户自定义的平台显示在分享面板的imageIcon和imageName
* 设置了此平台后不会过分享面板过滤掉
* http://dev.umeng.com/social/ios/进阶文档#5
*
* @param platformType 用户自定义的平台 范围在UMSocialPlatformType_UserDefine_BeginUMSocialPlatformType_UserDefine_End @see UMSocialPlatformType
* @param platformIcon 平台的icon
* @param platformName 平台的名字
* @disuss 此函数也可以加入用户需要自定义非平台的功能的性item,比如copy,paste等系统功能
*/
+(void)addCustomPlatformWithoutFilted:(UMSocialPlatformType)platformType
withPlatformIcon:(UIImage*)platformIcon
withPlatformName:(NSString*)platformName;
/**
* 删除用户自定义的平台显示在分享面板的imageIcon和imageName
* http://dev.umeng.com/social/ios/进阶文档#5
*
* @param platformType 范围在UMSocialPlatformType_UserDefine_BeginUMSocialPlatformType_UserDefine_End @see UMSocialPlatformType
*/
+(void)removeCustomPlatformWithoutFilted:(UMSocialPlatformType)platformType;
/**
* 删除所有的用户自定义的平台
* http://dev.umeng.com/social/ios/进阶文档#5
*/
+(void)removeAllCustomPlatformWithoutFilted;
/**
* 设置分享面板的代理,从而监控其显示和隐藏的状态
*
* @param shareMenuViewDelegate shareMenuViewDelegate @see UMSocialShareMenuViewDelegate
* @dicuss 用户根据自己的需求来判断是否需要监控分享面板的显示和隐藏的状态
*/
+(void)setShareMenuViewDelegate:(id<UMSocialShareMenuViewDelegate>)shareMenuViewDelegate;
@end