Functions

The following functions are available globally.

  • Looks up a localized string for CameraKit’s reference UI.

    Declaration

    Swift

    public func CameraKitLocalizedString(
        key: String,
        bundle: Bundle? = nil,
        preferredLanguages: [String] = NSLocale.preferredLanguages,
        comment: String?,
        table: String? = nil
    ) -> String

    Parameters

    key

    key to lookup.

    bundle

    explicit bundle to look up key for. If omitted, uses the CameraKit Reference UI bundle.

    preferredLanguages

    a list of language codes in order of preference.

    comment

    any comments on the string.

    table

    an explicit strings table to reference.

    Return Value

    a localized string, if one is available for the languages specified, otherwise the English string (and the key, if neither are found).