setUrlExpirationTime method

void setUrlExpirationTime(
  1. String urlExpirationTime
)

Sets the time the image URL will last on the server until it is expired. Expect to receive a time interval between "30m" to "30d".

Example:

  • "30m": To set minutes only
  • "24h": To set only hour(s)
  • "1h 10m": To set hour(s) and minute(s)
  • "10d": To set day(s)

By default it is set to 3h.

Implementation

void setUrlExpirationTime(String urlExpirationTime) {
  this.urlExpirationTime = urlExpirationTime;
}