Classe GCKImage
    
    
      
    
    
      
      Mantenha tudo organizado com as coleções
    
    
      
      Salve e categorize o conteúdo com base nas suas preferências.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
    
Uma classe que representa uma imagem localizada em um servidor da Web. 
Usado para, por exemplo, ícones do GCKDevice e arte do GCKMediaMetadata. 
Herda NSObject, <NSCopy> e <NSSecureCoding>.
      
        
          | - (instancetype) initWithURL: |  | (NSURL *) | URL | 
        
          | width: |  | (NSInteger) | width | 
        
          | height: |  | (NSInteger) | height | 
        
          |  |  |  |  | 
      
 
Cria um novo GCKImage com o URL e as dimensões fornecidos. 
Iniciador designado.
- Parameters
- 
  
    | URL | The URL of the image. |  | width | The width of the image, in pixels. |  | height | The height of the image, in pixels. |  
 
- Exceções
- 
  
    | NSInvalidArgumentException | se o URL for nil, estiver vazio ou as dimensões forem inválidas. |  
 
 
 
O inicializador padrão não está disponível. 
 
 
A largura da imagem, em pixels. 
 
 
A altura da imagem, em pixels. 
 
 
 
  
  
  
 
  
    
    
    
  
  
  Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
  Última atualização 2025-07-25 UTC.
  
  
  
    
      [null,null,["Última atualização 2025-07-25 UTC."],[],["The GCKImage class represents a web-hosted image, used for elements like device icons and media artwork. Key actions include initializing a GCKImage object with `initWithURL:width:height:`, providing the image's URL, width, and height in pixels. The default initializer `init` is unavailable. Properties include `URL` for the image's location, `width` for pixel width, and `height` for pixel height. Initialization with an invalid URL or dimensions will throw an exception.\n"]]