WebImage

class WebImage 
: Parcelable 

A class that represents an image that is located on a web server.

Summary

Constants

const Parcelable.Creator < WebImage !>!

Public constructors

WebImage (url:  Uri !)

Constructs a new WebImage with the given URL.

WebImage (url:  Uri !, width:  Int , height:  Int )

Constructs a new WebImage with the given URL and dimensions.

Public functions

Boolean
equals (other:  Any ?)
Int
String !

Returns a string representation of this object.

Unit
writeToParcel (out:  Parcel !, flags:  Int )

Public properties

Int
Uri !
url
Int

Inherited functions

Constants

CREATOR

const val  CREATOR 
 Parcelable.Creator 
< WebImage 
!>!

Public constructors

WebImage

 WebImage 
(url:  Uri 
!)

Constructs a new WebImage with the given URL.

Parameters
url:  Uri !

The URL of the image.

Throws
java.lang.IllegalArgumentException

If the URL is null or empty.

WebImage

 WebImage 
(url:  Uri 
!, width:  Int 
, height:  Int 
)

Constructs a new WebImage with the given URL and dimensions.

Parameters
url:  Uri !

The URL of the image.

width:  Int

The width of the image, in pixels.

height:  Int

The height of the image, in pixels.

Throws
java.lang.IllegalArgumentException

If the URL is null or empty, or the dimensions are invalid.

Public functions

equals

fun  equals 
(other:  Any 
?):  Boolean 

hashCode

fun  hashCode 
():  Int 

toString

fun  toString 
():  String 
!

Returns a string representation of this object.

writeToParcel

fun  writeToParcel 
(out:  Parcel 
!, flags:  Int 
):  Unit 

Public properties

height

val  height 
 Int 

url

val  url 
 Uri 
!

width

val  width 
 Int 
Design a Mobile Site
View Site in Mobile | Classic
Share by: