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