Skip to content

Messages

Status Message

  • Set a status message next to the frame:
DocReader.shared.customization.status = "Hello"
[RGLDocReader shared].customization.status = @"Hello";
  • Turn on/off the status message:
DocReader.shared.customization.showStatusMessages = true
[RGLDocReader shared].customization.showStatusMessages = YES;
  • Set the text font for the status message:
DocReader.shared.customization.statusTextFont = UIFont.italicSystemFont(ofSize: 14)
[RGLDocReader shared].customization.statusTextFont = [UIFont italicSystemFontOfSize:14];
  • Set the hex color code for the main text status:
DocReader.shared.customization.statusTextColor = UIColor.red
[RGLDocReader shared].customization.statusTextColor = [UIColor redColor];
  • Set the hex color code for the current text status background:
DocReader.shared.customization.statusBackgroundColor = UIColor.green
[RGLDocReader shared].customization.statusBackgroundColor = [UIColor greenColor];
  • You can change the location of the status message. For example, if you set the multiplier to 0.5 and the number of pixels by vertical is equal to 800, your message will be centralized and located at 200 px from top, that is (800 / 2) * 0.5 = 200 px. If the multiplier is equal to 1, the message will be centered. If the multiplier is equal to zero, the default location will be used:
DocReader.shared.customization.statusPositionMultiplier = 0.5
[RGLDocReader shared].customization.statusPositionMultiplier = 0.5;

Result Status Message

  • Set a result status message next to the frame:
DocReader.shared.customization.resultStatus = "Hello"
[RGLDocReader shared].customization.resultStatus = @"Hello";
  • Turn the result status message on/off:
DocReader.shared.customization.showResultStatusMessages = true
[RGLDocReader shared].customization.showResultStatusMessages = YES;
  • Set the text font for the current status:
DocReader.shared.customization.resultStatusTextFont = UIFont.italicSystemFont(ofSize: 14)
[RGLDocReader shared].customization.resultStatusTextFont = [UIFont italicSystemFontOfSize:14];
  • Set the hex color code for the current text status:
DocReader.shared.customization.resultStatusTextColor = UIColor.purple
[RGLDocReader shared].customization.resultStatusTextColor = [UIColor purpleColor];
  • Set the hex color code for the current text status background:
DocReader.shared.customization.resultStatusBackgroundColor = UIColor.red
[RGLDocReader shared].customization.resultStatusBackgroundColor = [UIColor redColor];
  • You can change the location of the result status message. For example, if you set the multiplier to 0.5 and the number of pixels by vertical is equal to 800, your message will be centralized and located at 200 px from top, that is (800 / 2) * 0.5 = 200 px. If the multiplier is equal to 1, the message will be centered. If the multiplier is equal to zero, the default location will be used:
DocReader.shared.customization.resultStatusPositionMultiplier = 0.5
[RGLDocReader shared].customization.resultStatusPositionMultiplier = 0.5;

Custom Status Message

DocReader.shared.customization.customLabelStatus = NSAttributedString(string: "Hello, world!", attributes: [NSAttributedString.Key.foregroundColor: UIColor.red, NSAttributedString.Key.font: UIFont.italicSystemFont(ofSize: 18)])
[RGLDocReader shared].customization.customLabelStatus = [[NSAttributedString alloc] initWithString:@"Hello, world!" attributes:@{ NSForegroundColorAttributeName:[UIColor redColor], NSFontAttributeName:[UIFont italicSystemFontOfSize:18] }];
  • You can change the location of the custom status message. For example, if you set the multiplier to 0.5 and the number of pixels by vertical is equal to 800, your message will be centralized and located at 200 px from top, that is (800 / 2) * 0.5 = 200 px. If the multiplier is equal to 1, the message will be centered. If the multiplier is equal to zero, the default location will be used:
DocReader.shared.customization.customStatusPositionMultiplier = 1.0
[RGLDocReader shared].customization.customStatusPositionMultiplier = 1.0;

Next Steps