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 87. Objective C
- (void)setDisplayOrientation:(nonnull PGCommand<PGSetDisplayOrientationRequest *> *)orientationCommand completionHandler:(void (^_Nonnull)(NSError * _Nullable error))completionHandler;
Example 88. Swift
func setDisplayOrientation(_ orientationCommand: PGCommand<PGSetDisplayOrientationRequest>, completionHandler: @escaping (Error?) -> Void)