ProjectionContext
Objective-C
@interface ProjectionContext : NSObject
Swift
class ProjectionContext : NSObject
This class encapsulates projection context details.
-
Async returns the projection result from an input projection.
Declaration
Objective-C
- (SDKErrorCode)convert:(nonnull ProjectionObject *)fromProj to:(nonnull ProjectionObject *)toProj completionHandler:(nonnull void (^)(SDKErrorCode))handler;
Swift
func convert(_ fromProj: ProjectionObject, to toProj: ProjectionObject, completionHandler handler: @escaping (SDKErrorCode) -> Void) -> SDKErrorCode
Parameters
fromProj
The input projection that needs to be converted. @param[out] toProj The result projection object. @param[out] handler The block to execute asynchronously with the result.
Return Value
Error code if the operation couldn’t start. If operation successfully started the completion notification will come via the completion handler.