All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.foxinmy.weixin4j.jssdk.JSSDKAPI Maven / Gradle / Ivy

There is a newer version: 1.10.2
Show newest version
package com.foxinmy.weixin4j.jssdk;

/**
 * JSSDK接口列表
 * 
 * @className JSSDKAPI
 * @author jinyu([email protected])
 * @date 2015年12月23日
 * @since JDK 1.6
 * @see 
 *      公众平台JSSDK
 * @see 
 *      企业号JSSDK
 */
public enum JSSDKAPI {
	/**
	 * 
	 * 自定义“分享给朋友”及“分享到QQ”按钮的分享内容(1.4.0)
	 */
	updateAppMessageShareData,
	/**
	 * 
	 * 自定义“分享给朋友”及“分享到QQ”按钮的分享内容(1.4.0)
	 */
	updateTimelineShareData,
	/***
	 * 分享接口-获取“分享到朋友圈”按钮点击状态及自定义分享内容接口(即将废弃)
	 * @deprecated
	 */
	@Deprecated
	onMenuShareTimeline,
	/***
	 * 分享接口-获取“分享给朋友”按钮点击状态及自定义分享内容接口(即将废弃)
	 * @deprecated
	 */
	@Deprecated
	onMenuShareAppMessage,
	/***
	 * 分享接口-获取“分享到QQ”按钮点击状态及自定义分享内容接口(即将废弃)
	 * @deprecated
	 */
	@Deprecated
	onMenuShareQQ,
	/***
	 * 分享接口-获取“分享到腾讯微博”按钮点击状态及自定义分享内容接口
	 */
	onMenuShareWeibo,
	/***
	 * 分享接口-获取“分享到QQ空间”按钮点击状态及自定义分享内容接口
	 */
	onMenuShareQZone,
	/***
	 * 图像接口-拍照或从手机相册中选图接口
	 */
	chooseImage,
	/***
	 * 图像接口-预览图片接口
	 */
	previewImage,
	/***
	 * 图像接口-上传图片接口
	 */
	uploadImage,
	/***
	 * 图像接口-下载图片接口
	 */
	downloadImage,
	/***
	 * 音频接口-开始录音接口
	 */
	startRecord,
	/***
	 * 音频接口-停止录音接口
	 */
	stopRecord,
	/***
	 * 音频接口-监听录音自动停止接口
	 */
	onVoiceRecordEnd,
	/***
	 * 音频接口-播放语音接口
	 */
	playVoice,
	/***
	 * 音频接口-暂停播放接口
	 */
	pauseVoice,
	/***
	 * 音频接口-停止播放接口
	 */
	stopVoice,
	/***
	 * 音频接口-监听语音播放完毕接口
	 */
	onVoicePlayEnd,
	/***
	 * 音频接口-上传语音接口
	 */
	uploadVoice,
	/***
	 * 音频接口-下载语音接口
	 */
	downloadVoice,
	/***
	 * 智能接口-识别音频并返回识别结果接口
	 */
	translateVoice,
	/***
	 * 设备信息-获取网络状态接口
	 */
	getNetworkType,
	/***
	 * 地理位置-使用微信内置地图查看位置接口
	 */
	openLocation,
	/***
	 * 地理位置-获取地理位置接口
	 */
	getLocation,
	/***
	 * 摇一摇周边-开启查找周边ibeacon设备接口
	 */
	startSearchBeacons,
	/***
	 * 摇一摇周边-关闭查找周边ibeacon设备接口
	 */
	stopSearchBeacons,
	/***
	 * 摇一摇周边-监听周边ibeacon设备接口
	 */
	onSearchBeacons,
	/***
	 * 界面操作-隐藏右上角菜单接口
	 */
	hideOptionMenu,
	/***
	 * 界面操作-显示右上角菜单接口
	 */
	showOptionMenu,
	/***
	 * 界面操作-关闭当前网页窗口接口
	 */
	closeWindow,
	/***
	 * 界面操作-批量隐藏功能按钮接口
	 */
	hideMenuItems,
	/***
	 * 界面操作-批量显示功能按钮接口
	 */
	showMenuItems,
	/***
	 * 界面操作-隐藏所有非基础按钮接口
	 */
	hideAllNonBaseMenuItem,
	/***
	 * 界面操作-显示所有功能按钮接口
	 */
	showAllNonBaseMenuItem,
	/***
	 * 微信扫一扫-调起微信扫一扫接口
	 */
	scanQRCode,
	/***
	 * 微信小店-跳转微信商品页接口
	 */
	openProductSpecificView,
	/***
	 * 微信卡券-拉取适用卡券列表并获取用户选择信息
	 */
	chooseCard,
	/***
	 * 微信卡券-批量添加卡券接口
	 */
	addCard,
	/***
	 * 微信卡券-查看微信卡包中的卡券接口
	 */
	openCard,
	/***
	 * 微信卡券-核销后再次赠送卡券接口
	 */
	consumeAndShareCard,
	/***
	 * 微信支付-发起一个微信支付请求
	 */
	chooseWXPay,
	/**
	 * 企业号会话-创建企业号会话
	 */
	openEnterpriseChat,
	
	/**
	 * 企业号-选取联系人
	 */
	openEnterpriseContact,
	selectEnterpriseContact,
	/**
	 * 企业号-向当前企业会话发送消息
	 */
	sendEnterpriseChat;

	/**
	 * 分享接口集合
	 */
	@Deprecated
	public final static JSSDKAPI[] SHARE_APIS = { onMenuShareTimeline, onMenuShareAppMessage, onMenuShareQQ,
			onMenuShareWeibo, onMenuShareQZone };

	public final static JSSDKAPI[] ALL_SHARE_APIS = { updateAppMessageShareData, updateTimelineShareData,
			onMenuShareWeibo, onMenuShareQZone };
	/**
	 * 图像接口集合
	 */
	public final static JSSDKAPI[] IMAGE_APIS = { chooseImage, previewImage, uploadImage, downloadImage };
	/**
	 * 音频接口集合
	 */
	public final static JSSDKAPI[] RECORD_APIS = { startRecord, stopRecord, onVoiceRecordEnd, playVoice, pauseVoice,
			stopVoice, onVoicePlayEnd, uploadVoice, downloadVoice };
	/**
	 * 智能接口集合
	 */
	public final static JSSDKAPI[] SEM_APIS = { translateVoice };
	/**
	 * 设备信息接口集合
	 */
	public final static JSSDKAPI[] DEVICE_APIS = { getNetworkType };
	/**
	 * 地理位置接口集合
	 */
	public final static JSSDKAPI[] LOCATION_APIS = { openLocation, getLocation };
	/**
	 * 摇一摇周边接口集合
	 */
	public final static JSSDKAPI[] BEACON_APIS = { startSearchBeacons, stopSearchBeacons, onSearchBeacons };
	/**
	 * 界面操作接口集合
	 */
	public final static JSSDKAPI[] UI_APIS = { hideOptionMenu, showOptionMenu, closeWindow, hideMenuItems,
			showMenuItems, hideAllNonBaseMenuItem, showAllNonBaseMenuItem };
	/**
	 * 微信扫一扫接口集合
	 */
	public final static JSSDKAPI[] SCAN_APIS = { scanQRCode };
	/**
	 * 微信小店接口集合
	 */
	public final static JSSDKAPI[] SHOP_APIS = { openProductSpecificView };
	/**
	 * 微信卡券接口集合
	 */
	public final static JSSDKAPI[] CARD_APIS = { chooseCard, addCard, openCard, consumeAndShareCard };
	/**
	 * 微信支付接口集合
	 */
	public final static JSSDKAPI[] PAY_APIS = { chooseWXPay };
	/**
	 * 企业号会话接口集合
	 */
	public final static JSSDKAPI[] CHAT_APIS = { openEnterpriseChat, sendEnterpriseChat };

	/**
	 * 公众平台全部接口集合
	 */
	public final static JSSDKAPI[] MP_ALL_APIS = { onMenuShareTimeline, onMenuShareAppMessage, onMenuShareQQ,
			onMenuShareWeibo, onMenuShareQZone, chooseImage, previewImage, uploadImage, downloadImage, startRecord,
			stopRecord, onVoiceRecordEnd, playVoice, pauseVoice, stopVoice, onVoicePlayEnd, uploadVoice, downloadVoice,
			translateVoice, getNetworkType, openLocation, getLocation, startSearchBeacons, stopSearchBeacons,
			onSearchBeacons, hideOptionMenu, showOptionMenu, closeWindow, hideMenuItems, showMenuItems,
			hideAllNonBaseMenuItem, showAllNonBaseMenuItem, scanQRCode, openProductSpecificView, chooseCard, addCard,
			openCard, consumeAndShareCard, chooseWXPay };
	/**
	 * 企业号全部接口集合
	 */
	public final static JSSDKAPI[] QY_ALL_APIS = { onMenuShareTimeline, onMenuShareAppMessage, onMenuShareQQ,
			onMenuShareWeibo, onMenuShareQZone, chooseImage, previewImage, uploadImage, downloadImage, startRecord,
			stopRecord, onVoiceRecordEnd, playVoice, pauseVoice, stopVoice, onVoicePlayEnd, uploadVoice, downloadVoice,
			translateVoice, getNetworkType, openLocation, getLocation, startSearchBeacons, stopSearchBeacons,
			onSearchBeacons, hideOptionMenu, showOptionMenu, closeWindow, hideMenuItems, showMenuItems,
			hideAllNonBaseMenuItem, showAllNonBaseMenuItem, scanQRCode, openEnterpriseChat, openEnterpriseContact };
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy