Realm.Object

Realm objects will automatically inherit from this class unless a Realm~ObjectClass was specified that does not inherit from this class.

Since: 0.12.0
isValid()boolean

Checks if this object has not been deleted and is part of a valid Realm.

Returns: boolean indicating if the object can be safely accessed.
linkingObjects(objectType, property)Realm.Results

Returns all the objects that link to this object in the specified relationship.

Parameters:
  • objectType
    • Type: string
    • The type of the objects that link to this object's type.

  • property
    • Type: string
    • The name of the property that references objects of this object's type.

Throws:
  • Error
    • If the relationship is not valid.

Returns: Realm.Results the objects that link to this object.
objectSchema()ObjectSchema

Returns the schema for the type this object belongs to.

Returns: ObjectSchema the schema that describes this object.