Protocols

The following protocols are available globally.

  • Undocumented

    See more

    Declaration

    Objective-C

    @protocol QueenEngineDelegate <NSObject>
    
    @optional
    
    /****
     * Called when gesture is detected.
     * @param engine The engine object.
     * @param gestureData The detected gesture data.
     */
    - (void)queenEngine:(QueenEngine *)engine didDetectGesture:(QEGestureData *)gestureData;
    
    /****
     * Called when face expression is detected.
     * @param engine The engine object.
     * @param faceExpressionData The detected face expression data.
     */
    - (void)queenEngine:(QueenEngine *)engine didDetectFaceExpression:(QEFaceExpressionData *)faceExpressionData;
    
    /****
     * Called when face is detected.
     * @param engine The engine object.
     * @param faceInfoData The detected face data.
     */
    - (void)queenEngine:(QueenEngine *)engine didDetectFaceInfo:(QEFaceInfoData *)faceInfoData;
    
    /****
     * Called when auto face shaping.
     * @param engine The engine object.
     * @param autoFaceShapeData The face shaping data.
     */
    - (void)queenEngine:(QueenEngine *)engine didChangeAutoFaceShapingStatus:(QEAutoFaceShapeData *)autoFaceShapeData;
    
    /****
     * Called when body is detected.
     * @param engine The engine object.
     * @param bodyInfoData The detected body data.
     */
    - (void)queenEngine:(QueenEngine *)engine didDetectBodyInfo:(QEBodyInfoData *)bodyInfoData;
    
    @end
  • Undocumented

    See more

    Declaration

    Objective-C

    @protocol QueenMaterialDelegate <NSObject>
    
    @optional
    
    /****
     * Callback of resource download completion.
     * @param type materialType.
     */
    - (void)queenMaterialOnReady:(kQueenMaterialType)type;
    
    /****
     * Callback of resource download progress.
     * @param currentSize Downloaded size of resources.
     * @param totalSize The total size of resources.
     * @param type materialType.
     */
    - (void)queenMaterialOnProgress:(kQueenMaterialType)type withCurrentSize:(int)currentSize withTotalSize:(int)totalSize withProgess:(float)progress;
    
    /****
     * For the callback of resource download errors, you should check whether there are problems in the network and disk space.
     * @param type materialType.
     */
    - (void)queenMaterialOnError:(kQueenMaterialType)type;
    
    @end