Skip to main content

iOS Assisted Selfie

This document describes integration specifications of AssistedSelfie library for the iOS version. In this section we will describe how to customize the SDK component text.

For example, if you want to configure the strings for your language, insert the strings in the Localizable.strings file.

Start View

This is the view where to start the selfie shot.

The text components in the Localizable.strings file are:

  • "assisted_selfie_start_title" for the Title.
  • "assisted_selfie_start_subtitle" for the Subtitle.
  • "assisted_selfie_start_button" for the Button's text.
  • "assisted_selfie_start_button_width" for the Button's width.

Photo View

This is the view where the selfie is taken.

The text components in the Localizable.strings file are:

For the Title item there are more options:

  • "assisted_selfie_photo_countdown_title" when the face is positioned correctly.
  • "assisted_selfie_photo_alert_not_inside_oval" when the face is outside the oval.
  • "assisted_selfie_photo_alert_multiple_faces_detected" when multiple face are detected.
  • "assisted_selfie_photo_alert_not_aligned" when the face is not aligned.
  • "assisted_selfie_photo_alert_too_far" when the face is too far.
  • "assisted_selfie_photo_alert_too_close" when the face is too close.

Internal Check Selfie View

This view is shown when there is an error in the captured selfie photo.

The text components in the Localizable.strings file are:

  • "assisted_selfie_internal_check_button_discard_text" for the discard Button.
  • "assisted_selfie_check_button_discard_width" for the discard Button's width.

For the Title item there are more options:

  • "assisted_selfie_internal_check_title_error_generic" when there is a generic error.
  • "assisted_selfie_internal_check_title_error_no_face" when the face is not found.
  • "assisted_selfie_internal_check_title_error_multiple_faces" when there are multiple faces.
  • "assisted_selfie_internal_check_title_error_face_not_aligned" when the face is not aligned.
  • "assisted_selfie_internal_check_title_error_face_too_smiling" when the face is too smiling.
  • "assisted_selfie_internal_check_title_error_on_left_eye" when the left eye is closed or too dark.
  • "assisted_selfie_internal_check_title_error_on_right_eye" when the right eye closed or too dark.
  • "assisted_selfie_internal_check_title_error_on_face_landmarks" when there is an error on face landmarks.
  • "assisted_selfie_internal_check_title_error_selfie_not_valid" when there is a fake face detection.

For the Subtitle item there are more options:

  • "assisted_selfie_internal_check_subtitle_error_generic" when there is a generic error.
  • "assisted_selfie_internal_check_subtitle_error_no_face" when the face is not found.
  • "assisted_selfie_internal_check_subtitle_error_multiple_faces" when there are multiple faces.
  • "assisted_selfie_internal_check_subtitle_error_face_not_aligned" when the face is not aligned.
  • "assisted_selfie_internal_check_subtitle_error_face_too_smiling" when the face is too smiling.
  • "assisted_selfie_internal_check_subtitle_error_on_left_eye" when the left eye is closed or too dark.
  • "assisted_selfie_internal_check_subtitle_error_on_right_eye" when the right eye is closed or too dark.
  • "assisted_selfie_internal_check_subtitle_error_on_face_landmarks" when there is an error on face landmarks.
  • "assisted_selfie_internal_check_subtitle_error_selfie_not_valid" when there is a fake face detection.

Liveness View

This is the view in which the customer authentication process is performed.

The text components in the Localizable.strings file are:

For the Title item there are more options:

  • "assisted_selfie_liveness_title_turn_left" to turn left.
  • "assisted_selfie_liveness_title_turn_right" to turn right.
  • "assisted_selfie_liveness_title_tilt_left" to tilt left.
  • "assisted_selfie_liveness_title_tilt_right" to tilt right.
  • "assisted_selfie_liveness_title_close_eyes" to close eyes.
  • "assisted_selfie_liveness_title_smile" to smile.
  • "assisted_selfie_liveness_title_intra_step" for the Title.

For the Subtitle item there are more options:

  • "assisted_selfie_liveness_subtitle_turn_left" to turn left.
  • "assisted_selfie_liveness_subtitle_turn_right" to turn right.
  • "assisted_selfie_liveness_subtitle_tilt_left" to tilt left.
  • "assisted_selfie_liveness_subtitle_tilt_right" to tilt right.
  • "assisted_selfie_liveness_subtitle_close_eyes" to close eyes.
  • "assisted_selfie_liveness_subtitle_smile" to smile.

Processing Data View

This view is shown when the liveness process has ended.

The text components in the Localizable.strings file are:

  • "assisted_selfie_photo_processing" for the Title.

Check Selfie View

This view is only shown if the "enableCheckSelfieView()" init method is called.

The text components in the Localizable.strings file are:

  • "assisted_selfie_check_title" for the Title.
  • "assisted_selfie_check_subtitle" for the Subtitle.
  • "assisted_selfie_check_button_accept_text" for the accept Button.
  • "assisted_selfie_check_button_discard_text" for the discard Button.

Photo Zoom View

This view is shown when the photo is clicked on the "AssistedSelfieCheckSelfie" view.

There are no text components in the Localizable.strings file.


Dialog Customization View

When no face is detected, after a few seconds (30s), an AlertDialog will be displayed. The dialog will contain the title, the text message and a confirm button.

The text components in the Localizable.strings file are:

  • "assisted_selfie_photo_alert_no_action_timer_title" for the Title.
  • "assisted_selfie_photo_alert_no_action_timer_message" for the Message.
  • "assisted_selfie_photo_alert_no_action_timer_ok" for the confirm Button.