is_restricted_in_country


Description:

[ Version ( since = "0.4.0" ) ]
public bool is_restricted_in_country (string country)

Checks whether viewing of the video is restricted in country, either by its content rating, or by the request of the producer.

The return value from this function is purely informational, and no obligation is assumed.

Parameters:

this

a YouTubeVideo

country

an ISO 3166 two-letter country code to check

Returns:

true if the video is restricted in country, false otherwise




2022 vala-language.org