Klasa GCKImage
    
    
      
    
    
      
      Zadbaj o dobrą organizację dzięki kolekcji
    
    
      
      Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
    
Klasa reprezentująca obraz, który znajduje się na serwerze WWW. 
Używany w przypadku takich elementów jak ikony GCKDevice i grafika GCKMediaMetadata. 
Dziedziczy NSObject, <NSCopying> i <NSSecureCoding>.
      
        
          | - (instancetype) initWithURL: |  | (NSURL *) | URL | 
        
          | width: |  | (NSInteger) | width | 
        
          | height: |  | (NSInteger) | height | 
        
          |  |  |  |  | 
      
 
Tworzy nowy element GCKImage z podanym adresem URL i wymiarami. 
Wyznaczony inicjator.
- Parameters
- 
  
    | URL | The URL of the image. |  | width | The width of the image, in pixels. |  | height | The height of the image, in pixels. |  
 
- działania związane z wyjątkami.
- 
  
    | NSInvalidArgumentException | jeśli adres URL ma wartość nillub jest pusty albo wymiary są nieprawidłowe. |  
 
 
 
Domyślny inicjator jest niedostępny. 
 
 
Szerokość obrazu w pikselach. 
 
 
Wysokość obrazu w pikselach. 
 
 
 
  
  
  
 
  
    
    
    
  
  
  O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
  Ostatnia aktualizacja: 2025-07-25 UTC.
  
  
  
    
      [null,null,["Ostatnia aktualizacja: 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"]]