Skip to content

Set display orientation

To set the screen orientation on a connected scanner's display, PGCentarlManager provides PGDisplayManager property with setDisplayOrientation method.
The method accepts PGCommand with PGSetDisplayOrientationRequest request containing the desired orientation.
In case the request fails, an Error object is returned via the completion handler block.

- (void)setDisplayOrientation:(nonnull PGCommand<PGSetDisplayOrientationRequest *> *)orientationCommand completionHandler:(void (^_Nonnull)(NSError * _Nullable error))completionHandler;
func setDisplayOrientation(_ orientationCommand: PGCommand<PGSetDisplayOrientationRequest>, completionHandler: @escaping (Error?) -> Void)