UNPKG

react-native-qonversion

Version:

Qonversion provides full in-app purchases infrastructure, so you do not need to build your own server for receipt validation. Implement in-app subscriptions, validate user receipts, check subscription status, and provide access to your app features and co

49 lines (48 loc) 1.83 kB
import UserProperty from './UserProperty'; import { UserPropertyKey } from './enums'; declare class UserProperties { /** * List of all user properties. */ properties: UserProperty[]; /** * List of user properties, set for the Qonversion defined keys. * This is a subset of all {@link properties} list. * See {@link QonversionApi.setUserProperty}. */ definedProperties: UserProperty[]; /** * List of user properties, set for custom keys. * This is a subset of all {@link properties} list. * See {@link QonversionApi.setCustomUserProperty}. */ customProperties: UserProperty[]; /** * Map of all user properties. * This is a flattened version of the {@link properties} list as a key-value map. */ flatPropertiesMap: Map<string, string>; /** * Map of user properties, set for the Qonversion defined keys. * This is a flattened version of the {@link definedProperties} list as a key-value map. * See {@link QonversionApi.setUserProperty}. */ flatDefinedPropertiesMap: Map<UserPropertyKey, string>; /** * Map of user properties, set for custom keys. * This is a flattened version of the {@link customProperties} list as a key-value map. * See {@link QonversionApi.setCustomUserProperty}. */ flatCustomPropertiesMap: Map<string, string>; constructor(properties: UserProperty[]); /** * Searches for a property with the given property {@link key} in all properties list. */ getProperty(key: string): UserProperty | undefined; /** * Searches for a property with the given Qonversion defined property {@link key} * in defined properties list. */ getDefinedProperty(key: UserPropertyKey): UserProperty | undefined; } export default UserProperties;