public class ShareUtils
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static interface |
ShareUtils.IShortLinkCallback |
构造器和说明 |
---|
ShareUtils() |
限定符和类型 | 方法和说明 |
---|---|
static void |
buildShareContent(BaseShareModule.LiveShareData shareData)
分享文案
|
static void |
buildShareTitle(BaseShareModule.LiveShareData shareData)
分享标题
|
static void |
buildShareUrl(BaseShareModule.LiveShareData shareData,
IShareDelegate mShare,
androidx.fragment.app.Fragment fragment)
分享链接参数拼接
|
static void |
cancelLoading(androidx.fragment.app.Fragment fragment) |
static android.graphics.Bitmap |
compressBitmap(android.graphics.Bitmap bmp) |
static android.graphics.Bitmap |
compressBitmap(android.graphics.Bitmap bmp,
float r) |
static IShareDelegate |
createShareImpl() |
static java.lang.String |
generateShareSourceLink(java.lang.String link,
int sourceFrom) |
static java.lang.String |
generateShareToLink(BaseShareModule.LiveShareData shareData) |
static int |
getShareKid(int shareTo) |
static java.lang.String |
getShareNameByType(int shareTo)
根据分享渠道获取分享名字
|
static android.graphics.Bitmap |
getShortIdBitmap(java.lang.String shortId)
生成短id的bitmap
|
static android.graphics.Bitmap |
makeWaterMark(android.graphics.Bitmap bmp,
boolean bmpIstemp,
java.lang.String shortId)
返回一个打上水印的图片
|
static void |
reportOnShare(BaseShareModule.LiveShareData data,
int act,
java.lang.String mTopicName) |
static void |
requestShortLink(java.lang.String sourceLink,
ShareUtils.IShortLinkCallback callback)
请求生成短链接
|
static void |
setShareImplClazz(java.lang.Class<? extends IShareDelegate> clazz) |
public static void setShareImplClazz(java.lang.Class<? extends IShareDelegate> clazz)
public static IShareDelegate createShareImpl()
public static void cancelLoading(androidx.fragment.app.Fragment fragment)
public static android.graphics.Bitmap compressBitmap(android.graphics.Bitmap bmp)
public static android.graphics.Bitmap compressBitmap(android.graphics.Bitmap bmp, float r)
public static android.graphics.Bitmap makeWaterMark(android.graphics.Bitmap bmp, boolean bmpIstemp, java.lang.String shortId)
bmp
- public static android.graphics.Bitmap getShortIdBitmap(java.lang.String shortId)
public static void reportOnShare(BaseShareModule.LiveShareData data, int act, java.lang.String mTopicName)
public static int getShareKid(int shareTo)
public static void buildShareTitle(BaseShareModule.LiveShareData shareData)
public static void buildShareContent(BaseShareModule.LiveShareData shareData)
public static void buildShareUrl(BaseShareModule.LiveShareData shareData, IShareDelegate mShare, androidx.fragment.app.Fragment fragment)
public static java.lang.String generateShareToLink(BaseShareModule.LiveShareData shareData)
public static java.lang.String getShareNameByType(int shareTo)
public static java.lang.String generateShareSourceLink(java.lang.String link, int sourceFrom)
public static void requestShortLink(java.lang.String sourceLink, ShareUtils.IShortLinkCallback callback)
sourceLink
- 原始链接callback
- 回调