Skip to main content

ProGlove Documentation

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.

Example 119. Objective C
- (void)setDisplayOrientation:(nonnull PGCommand *)orientationCommand completionHandler:(void (^_Nonnull)(NSError * _Nullable error))completionHandler;


Example 120. Swift
func setDisplayOrientation(_ orientationCommand: PGCommand, completionHandler: @escaping (Error?) -> Void)