Skip to main content

iOS - yuu SDK ID page

Profile Page

Open the yuu user profile page to display the member's QR code (containing their yuu ID). The page also accepts your app's loyalty info as an optional parameter to be displayed alongside.

Parameters

from (UIViewController, required): The view controller that the login web view launched.

do {
try YuuManager.shared.launchProfilePage(from: self)
} catch {
//Add your code here to catch error
}

With partner loyalty id

Display the partner loyalty id on to yuu profile page (such as Mannings Id).

Parameters

from (UIViewController, required): The view controller that the login web view launched.

partnerLoyalty (PartnerLoyalty, optional):

  • partnerLoyaltyId (String, Required)
  • partnerLoyaltyIdNameEn (String, Required)
  • partnerLoyaltyIdNameZhHant (String, Required)

Display the partner loyalty id on to yuu profile page (such as Mannings Id).

let partnerLoyalty = PartnerLoyalty(partnerLoyaltyId: "<YOUR PARTNER LOYALTY ID",
partnerLoyaltyIdNameEn: "<YOUR PARTNER LOYALTY ID ENGLISH NAME",
partnerLoyaltyIdNameZhHant: "<YOUR PARTNER LOYALTY ID CHINESE NAME")
do {
try YuuManager.shared.launchProfilePage(from: self, partnerLoyalty: partnerLoyalty)
} catch {
//Add your code here to catch error
}

Note: The displayed name corresponds to the language configured in the SDK. Use YuuManager.shared.updateLanguage() to synchronize the SDK's language with your app's current language setting.