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.

72 lines
1.6 KiB

//
// JCDoodle.h
// JCSDKOC
//
// Created by young on 2017/12/29.
// Copyright © 2017年 juphoon. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "JCDoodleAction.h"
#import "JCDoodleProtocol.h"
NS_ASSUME_NONNULL_BEGIN
extern NSString * const kJCDataTypeDoodle;
/**
* @brief
*/
@interface JCDoodle : NSObject
/**
* @brief JCDoodle
* @param callback JCDoodleCallback
* @return JCDoodle
*/
+ (JCDoodle *)create:(id<JCDoodleCallback>)callback;
/**
* @brief JCDoodle
*
*/
+ (void)destroy;
/**
* @brief JCDoodleAction对象转换成字符串
* @param doodleAction nil
* @return
*/
- (nullable NSString *)stringFromDoodleAction:(JCDoodleAction *)doodleAction;
/**
* @brief JCDoodleAction对象
* @param doodleActionData stringFromDoodleAction接口转换的字符串
* @return JCDoodleAction对象 doodleActionData
*
*/
- (nullable JCDoodleAction *)doodleActionFromString:(NSString *)doodleActionData;
/**
* @brief UI JCDoodleAction SDKSDK onDoodleActionGenerated doodleAction
* UI
*
* @param doodleAction
*
*/
- (void)generateDoodleAction:(JCDoodleAction *)doodleAction;
/**
* @brief Doodle UI
* @param interactor <JCDoodleInteractor> UI
*/
- (void)bindDoodleInteractor:(id<JCDoodleInteractor>)interactor;
@end
NS_ASSUME_NONNULL_END