The most descriptive filtering category, or nil.
One answer from the App Lookup API.
A 200 answer gives found: true. A 404 answer gives found: false; for a
Google Play app that is not yet categorized, android_package is set and
pending_android?/1 returns true.
Summary
Functions
True when at least one category of the app is in blocked.
Builds a struct from a decoded JSON map (string keys).
Case-insensitive test for one category.
Categories of the app that appear in blocked, in ranked order.
The numeric part of the age rating: 12 for "12+", nil when missing.
Listed on Google Play but not yet in the categorized database.
The most descriptive filtering category, or nil.
Map with the API field names, ready for Jason.encode!/1.
Types
@type t() :: %AppBlockList.App{ age_rating: String.t(), android_package: String.t(), app_store_genre: String.t(), app_store_id: String.t(), bundle_id: String.t(), developer: String.t(), developer_domain: String.t(), error: String.t() | nil, filtering_categories: [String.t()], found: boolean(), iab_category: String.t(), name: String.t(), raw: map() }
Functions
@spec blocked_by?(t(), Enumerable.t()) :: boolean()
True when at least one category of the app is in blocked.
Builds a struct from a decoded JSON map (string keys).
Case-insensitive test for one category.
@spec matching_categories(t(), Enumerable.t()) :: [String.t()]
Categories of the app that appear in blocked, in ranked order.
@spec minimum_age(t()) :: non_neg_integer() | nil
The numeric part of the age rating: 12 for "12+", nil when missing.
Listed on Google Play but not yet in the categorized database.
Map with the API field names, ready for Jason.encode!/1.