FirebaseDatabase Framework Reference | Latest TMZ Celebrity News & Gossip | Watch TMZ Live

FirebaseDatabase Framework Reference

ServerValue

class ServerValue : NSObject

Placeholder values you may write into Firebase Database as a value or priority that will automatically be populated by the Firebase Database server.

  • Placeholder value for the number of milliseconds since the Unix epoch

    Declaration

    Swift

    class func timestamp() -> [AnyHashable : Any]
  • Returns a placeholder value that can be used to atomically increment the current database value by the provided delta.

    The delta must be a long or double value. If the current value is not an integer or double, or if the data does not yet exist, the transformation will set the data to the delta value. If either of the delta value or the existing data are doubles, both values will be interpreted as doubles. Double arithmetic and representation of double values follow IEEE 754 semantics. If there is positive/negative integer overflow, the sum is calculated as a double.

    Declaration

    Swift

    class func increment(_ delta: NSNumber) -> [AnyHashable : Any]

    Parameters

    delta

    the amount to modify the current value atomically.

    Return Value

    a placeholder value for modifying data atomically server-side.

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.