-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBusinessChat.framework.h
94 lines (75 loc) · 3.07 KB
/
BusinessChat.framework.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
// ========== BusinessChat.framework/Headers/BCChatButton.h
//
// BCChatButton.h
// BusinessChat
//
// Copyright © 2018 Apple, Inc. All rights reserved.
//
#import <TargetConditionals.h>
#if TARGET_OS_OSX && !TARGET_OS_UIKITFORMAC
#import <Cocoa/Cocoa.h>
#else
#import <UIKit/UIKit.h>
#endif
NS_ASSUME_NONNULL_BEGIN
/**
BCChatButtonStyle is used to define the visual style of the button.
*/
typedef NS_ENUM(NSInteger, BCChatButtonStyle) { BCChatButtonStyleLight = 0, BCChatButtonStyleDark } NS_SWIFT_NAME(BCChatButton.Style) API_AVAILABLE(macos(10.13.4), ios(11.3));
/**
BCChatButton is a button allowing users to initiate a conversation with a business.
*/
API_AVAILABLE(macos(10.13.4), ios(11.3))
#if TARGET_OS_OSX && !TARGET_OS_UIKITFORMAC
@interface BCChatButton : NSControl
#else
@interface BCChatButton : UIControl
#endif
/**
Creates and returns a BCChatButton configured for a given style.
@param style The visual style of the button.
@return BCChatButton instance.
*/
- (instancetype)initWithStyle:(BCChatButtonStyle)style API_AVAILABLE(macos(10.13.4), ios(11.3))NS_DESIGNATED_INITIALIZER;
@end
NS_ASSUME_NONNULL_END
// ========== BusinessChat.framework/Headers/BusinessChat.h
//
// BusinessChat.h
// BusinessChat
//
// Copyright © 2018 Apple, Inc. All rights reserved.
//
#import <BusinessChat/BCChatAction.h>
#import <BusinessChat/BCChatButton.h>
// ========== BusinessChat.framework/Headers/BCChatAction.h
//
// BCChatAction.h
// BusinessChat
//
// Copyright © 2018 Apple, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
// clang-format off
NS_ASSUME_NONNULL_BEGIN
/**
BCParameterName is used to define custom parameters when opening the transcript.
*/
typedef NSString *BCParameterName _NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(BCChatAction.Parameter);
/** Intent is used to help the support agent or business system identify the product, service, account, or other context when the customer tapped the button to send the message. */
extern BCParameterName const BCParameterNameIntent API_AVAILABLE(macos(10.13.4), ios(11.3));
/** Group is used to help the business or customer service platform route the message to the appropriate support agent group. */
extern BCParameterName const BCParameterNameGroup API_AVAILABLE(macos(10.13.4), ios(11.3));
/** Body is used to help the customer by providing a pre-configured contextual message that the customer can tap to send to smooth the transition into Business Chat. */
extern BCParameterName const BCParameterNameBody API_AVAILABLE(macos(10.13.4), ios(11.3));
API_AVAILABLE(macos(10.13.4), ios(11.3))
@interface BCChatAction : NSObject
/**
Open the chat transcript configured for a given business.
@param businessIdentifier The business identifier for the given business.
@param intentParameters Parameters to be sent with the initial message.
*/
+ (void)openTranscript:(NSString *)businessIdentifier
intentParameters:(NSDictionary<BCParameterName, NSString *> *)intentParameters NS_SWIFT_NAME(openTranscript(businessIdentifier:intentParameters:))API_AVAILABLE(macos(10.13.4), ios(11.3));
@end
NS_ASSUME_NONNULL_END