You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.9 KiB
58 lines
1.9 KiB
// |
|
// XHMessageBubbleFactory.h |
|
// MessageDisplayExample |
|
// |
|
// Created by HUAJIE-1 on 14-4-25. |
|
// Copyright (c) 2014年 曾宪华 开发团队(http://iyilunba.com ) 本人QQ:543413507 本人QQ群(142557668). All rights reserved. |
|
// |
|
#import <UIKit/UIKit.h> |
|
|
|
#import <Foundation/Foundation.h> |
|
|
|
typedef NS_ENUM(NSInteger, XHBubbleMessageType) { |
|
XHBubbleMessageTypeSending = 0, // 发送 |
|
XHBubbleMessageTypeReceiving // 接收 |
|
}; |
|
|
|
typedef NS_ENUM(NSUInteger, XHBubbleImageViewStyle) { |
|
XHBubbleImageViewStyleWeChat = 0 |
|
}; |
|
|
|
typedef NS_ENUM(NSInteger, XHBubbleMessageMediaType) { |
|
XHBubbleMessageMediaTypeText = 1, |
|
XHBubbleMessageMediaTypePhoto = 2, |
|
XHBubbleMessageMediaTypeVoice = 3, |
|
XHBubbleMessageMediaTypeVideo = 5, |
|
XHBubbleMessageMediaTypeEmotion = 4, |
|
XHBubbleMessageMediaTypeLocalPosition = 6, |
|
}; |
|
|
|
typedef NS_ENUM(NSInteger, XHBubbleMessageMenuSelecteType) { |
|
XHBubbleMessageMenuSelecteTypeTextCopy = 0, |
|
XHBubbleMessageMenuSelecteTypeTextTranspond = 1, |
|
XHBubbleMessageMenuSelecteTypeTextFavorites = 2, |
|
XHBubbleMessageMenuSelecteTypeTextMore = 3, |
|
|
|
XHBubbleMessageMenuSelecteTypePhotoCopy = 4, |
|
XHBubbleMessageMenuSelecteTypePhotoTranspond = 5, |
|
XHBubbleMessageMenuSelecteTypePhotoFavorites = 6, |
|
XHBubbleMessageMenuSelecteTypePhotoMore = 7, |
|
|
|
XHBubbleMessageMenuSelecteTypeVideoTranspond = 8, |
|
XHBubbleMessageMenuSelecteTypeVideoFavorites = 9, |
|
XHBubbleMessageMenuSelecteTypeVideoMore = 10, |
|
|
|
XHBubbleMessageMenuSelecteTypeVoicePlay = 11, |
|
XHBubbleMessageMenuSelecteTypeVoiceFavorites = 12, |
|
XHBubbleMessageMenuSelecteTypeVoiceTurnToText = 13, |
|
XHBubbleMessageMenuSelecteTypeVoiceMore = 14, |
|
}; |
|
|
|
@interface XHMessageBubbleFactory : NSObject |
|
|
|
+ (UIImage *)bubbleImageViewForType:(XHBubbleMessageType)type |
|
style:(XHBubbleImageViewStyle)style |
|
meidaType:(XHBubbleMessageMediaType)mediaType; |
|
|
|
|
|
@end
|
|
|