androidenterprise  v1
Public Member Functions | Static Public Member Functions | List of all members
google_androidenterprise_api::WebApp Class Reference

#include <web_app.h>

Inheritance diagram for google_androidenterprise_api::WebApp:

Public Member Functions

 WebApp (const Json::Value &storage)
 
 WebApp (Json::Value *storage)
 
virtual ~WebApp ()
 
const StringPiece GetTypeName () const
 
bool has_display_mode () const
 
void clear_display_mode ()
 
const StringPiece get_display_mode () const
 
void set_display_mode (const StringPiece &value)
 
bool has_icons () const
 
void clear_icons ()
 
const client::JsonCppArray< WebAppIconget_icons () const
 
client::JsonCppArray< WebAppIconmutable_icons ()
 
bool has_is_published () const
 
void clear_is_published ()
 
bool get_is_published () const
 
void set_is_published (bool value)
 
bool has_start_url () const
 
void clear_start_url ()
 
const StringPiece get_start_url () const
 
void set_start_url (const StringPiece &value)
 
bool has_title () const
 
void clear_title ()
 
const StringPiece get_title () const
 
void set_title (const StringPiece &value)
 
bool has_version_code () const
 
void clear_version_code ()
 
int64 get_version_code () const
 
void set_version_code (int64 value)
 
bool has_web_app_id () const
 
void clear_web_app_id ()
 
const StringPiece get_web_app_id () const
 
void set_web_app_id (const StringPiece &value)
 

Static Public Member Functions

static WebAppNew ()
 

Detailed Description

A WebApps resource represents a web app created for an enterprise. Web apps are published to managed Google Play and can be distributed like other Android apps. On a user's device, a web app opens its specified URL.

Constructor & Destructor Documentation

◆ WebApp() [1/2]

google_androidenterprise_api::WebApp::WebApp ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ WebApp() [2/2]

google_androidenterprise_api::WebApp::WebApp ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ ~WebApp()

google_androidenterprise_api::WebApp::~WebApp ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_display_mode()

void google_androidenterprise_api::WebApp::clear_display_mode ( )
inline

Clears the 'displayMode' attribute.

◆ clear_icons()

void google_androidenterprise_api::WebApp::clear_icons ( )
inline

Clears the 'icons' attribute.

◆ clear_is_published()

void google_androidenterprise_api::WebApp::clear_is_published ( )
inline

Clears the 'isPublished' attribute.

◆ clear_start_url()

void google_androidenterprise_api::WebApp::clear_start_url ( )
inline

Clears the 'startUrl' attribute.

◆ clear_title()

void google_androidenterprise_api::WebApp::clear_title ( )
inline

Clears the 'title' attribute.

◆ clear_version_code()

void google_androidenterprise_api::WebApp::clear_version_code ( )
inline

Clears the 'versionCode' attribute.

◆ clear_web_app_id()

void google_androidenterprise_api::WebApp::clear_web_app_id ( )
inline

Clears the 'webAppId' attribute.

◆ get_display_mode()

const StringPiece google_androidenterprise_api::WebApp::get_display_mode ( ) const
inline

Get the value of the 'displayMode' attribute.

◆ get_icons()

const client::JsonCppArray<WebAppIcon > google_androidenterprise_api::WebApp::get_icons ( ) const

Get a reference to the value of the 'icons' attribute.

◆ get_is_published()

bool google_androidenterprise_api::WebApp::get_is_published ( ) const
inline

Get the value of the 'isPublished' attribute.

◆ get_start_url()

const StringPiece google_androidenterprise_api::WebApp::get_start_url ( ) const
inline

Get the value of the 'startUrl' attribute.

◆ get_title()

const StringPiece google_androidenterprise_api::WebApp::get_title ( ) const
inline

Get the value of the 'title' attribute.

◆ get_version_code()

int64 google_androidenterprise_api::WebApp::get_version_code ( ) const
inline

Get the value of the 'versionCode' attribute.

◆ get_web_app_id()

const StringPiece google_androidenterprise_api::WebApp::get_web_app_id ( ) const
inline

Get the value of the 'webAppId' attribute.

◆ GetTypeName()

const StringPiece google_androidenterprise_api::WebApp::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_androidenterprise_api::WebApp

◆ has_display_mode()

bool google_androidenterprise_api::WebApp::has_display_mode ( ) const
inline

Determine if the 'displayMode' attribute was set.

Returns
true if the 'displayMode' attribute was set.

◆ has_icons()

bool google_androidenterprise_api::WebApp::has_icons ( ) const
inline

Determine if the 'icons' attribute was set.

Returns
true if the 'icons' attribute was set.

◆ has_is_published()

bool google_androidenterprise_api::WebApp::has_is_published ( ) const
inline

Determine if the 'isPublished' attribute was set.

Returns
true if the 'isPublished' attribute was set.

◆ has_start_url()

bool google_androidenterprise_api::WebApp::has_start_url ( ) const
inline

Determine if the 'startUrl' attribute was set.

Returns
true if the 'startUrl' attribute was set.

◆ has_title()

bool google_androidenterprise_api::WebApp::has_title ( ) const
inline

Determine if the 'title' attribute was set.

Returns
true if the 'title' attribute was set.

◆ has_version_code()

bool google_androidenterprise_api::WebApp::has_version_code ( ) const
inline

Determine if the 'versionCode' attribute was set.

Returns
true if the 'versionCode' attribute was set.

◆ has_web_app_id()

bool google_androidenterprise_api::WebApp::has_web_app_id ( ) const
inline

Determine if the 'webAppId' attribute was set.

Returns
true if the 'webAppId' attribute was set.

◆ mutable_icons()

client::JsonCppArray<WebAppIcon > google_androidenterprise_api::WebApp::mutable_icons ( )

Gets a reference to a mutable value of the 'icons' property.

A list of icons representing this website. If absent, a default icon (for create) or the current icon (for update) will be used.

Returns
The result can be modified to change the attribute value.

◆ New()

WebApp * google_androidenterprise_api::WebApp::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_display_mode()

void google_androidenterprise_api::WebApp::set_display_mode ( const StringPiece &  value)
inline

Change the 'displayMode' attribute.

The display mode of the web app.

Possible values include:

  • "minimalUi", the device's status bar, navigation bar, the app's URL, and a refresh button are visible when the app is open. For HTTP URLs, you can only select this option.
  • "standalone", the device's status bar and navigation bar are visible when the app is open.
  • "fullScreen", the app opens in full screen mode, hiding the device's status and navigation bars. All browser UI elements, page URL, system status bar and back button are not visible, and the web app takes up the entirety of the available display area.
Parameters
[in]valueThe new value.

◆ set_is_published()

void google_androidenterprise_api::WebApp::set_is_published ( bool  value)
inline

Change the 'isPublished' attribute.

A flag whether the app has been published to the Play store yet.

Parameters
[in]valueThe new value.

◆ set_start_url()

void google_androidenterprise_api::WebApp::set_start_url ( const StringPiece &  value)
inline

Change the 'startUrl' attribute.

The start URL, i.e. the URL that should load when the user opens the application.

Parameters
[in]valueThe new value.

◆ set_title()

void google_androidenterprise_api::WebApp::set_title ( const StringPiece &  value)
inline

Change the 'title' attribute.

The title of the web app as displayed to the user (e.g., amongst a list of other applications, or as a label for an icon).

Parameters
[in]valueThe new value.

◆ set_version_code()

void google_androidenterprise_api::WebApp::set_version_code ( int64  value)
inline

Change the 'versionCode' attribute.

The current version of the app.

Note that the version can automatically increase during the lifetime of the web app, while Google does internal housekeeping to keep the web app up-to- date.

Parameters
[in]valueThe new value.

◆ set_web_app_id()

void google_androidenterprise_api::WebApp::set_web_app_id ( const StringPiece &  value)
inline

Change the 'webAppId' attribute.

The ID of the application. A string of the form "app:" where the package name always starts with the prefix "com.google.enterprise.webapp." followed by a random id.

Parameters
[in]valueThe new value.

The documentation for this class was generated from the following files: