Google Chat V1 API - Class Google::Apps::Card::V1::MaterialIcon (v0.3.0)

Reference documentation and code samples for the Google Chat V1 API class Google::Apps::Card::V1::MaterialIcon.

A Google Material Icon, which includes over 2500+ options.

For example, to display a checkbox icon with customized weight and grade, write the following:

{ "name": "check_box", "fill": true, "weight": 300, "grade": -25 }

Google Chat apps:

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#fill

def fill() -> ::Boolean
Returns
  • (::Boolean) — Whether the icon renders as filled. Default value is false.

    To preview different icon settings, go to Google Font Icons and adjust the settings under Customize.

#fill=

def fill=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Whether the icon renders as filled. Default value is false.

    To preview different icon settings, go to Google Font Icons and adjust the settings under Customize.

Returns
  • (::Boolean) — Whether the icon renders as filled. Default value is false.

    To preview different icon settings, go to Google Font Icons and adjust the settings under Customize.

#grade

def grade() -> ::Integer
Returns
  • (::Integer) — Weight and grade affect a symbol’s thickness. Adjustments to grade are more granular than adjustments to weight and have a small impact on the size of the symbol. Choose from {-25, 0, 200}. If absent, default value is 0. If any other value is specified, the default value is used.

    To preview different icon settings, go to Google Font Icons and adjust the settings under Customize.

#grade=

def grade=(value) -> ::Integer
Parameter
  • value (::Integer) — Weight and grade affect a symbol’s thickness. Adjustments to grade are more granular than adjustments to weight and have a small impact on the size of the symbol. Choose from {-25, 0, 200}. If absent, default value is 0. If any other value is specified, the default value is used.

    To preview different icon settings, go to Google Font Icons and adjust the settings under Customize.

Returns
  • (::Integer) — Weight and grade affect a symbol’s thickness. Adjustments to grade are more granular than adjustments to weight and have a small impact on the size of the symbol. Choose from {-25, 0, 200}. If absent, default value is 0. If any other value is specified, the default value is used.

    To preview different icon settings, go to Google Font Icons and adjust the settings under Customize.

#name

def name() -> ::String
Returns
  • (::String) — The icon name defined in the Google Material Icon, for example, check_box. Any invalid names are abandoned and replaced with empty string and results in the icon failing to render.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — The icon name defined in the Google Material Icon, for example, check_box. Any invalid names are abandoned and replaced with empty string and results in the icon failing to render.
Returns
  • (::String) — The icon name defined in the Google Material Icon, for example, check_box. Any invalid names are abandoned and replaced with empty string and results in the icon failing to render.

#weight

def weight() -> ::Integer
Returns
  • (::Integer) — The stroke weight of the icon. Choose from 200, 300, 400, 500, 600, 700. If absent, default value is 400. If any other value is specified, the default value is used.

    To preview different icon settings, go to Google Font Icons and adjust the settings under Customize.

#weight=

def weight=(value) -> ::Integer
Parameter
  • value (::Integer) — The stroke weight of the icon. Choose from 200, 300, 400, 500, 600, 700. If absent, default value is 400. If any other value is specified, the default value is used.

    To preview different icon settings, go to Google Font Icons and adjust the settings under Customize.

Returns
  • (::Integer) — The stroke weight of the icon. Choose from 200, 300, 400, 500, 600, 700. If absent, default value is 400. If any other value is specified, the default value is used.

    To preview different icon settings, go to Google Font Icons and adjust the settings under Customize.