API:Class/ServiceProvider

Abstract: This object is abstract. It cannot be created with Instance.new, and its members are inherited by other classes.
Filtered-inheritance mode: While this class technically inherits all Instance class members, some (if not all) have been hidden because they serve no purpose for this object.

Object Icon.pngServiceProvider : Object Icon.pngInstance

A ServiceProvider is an abstract class, which stores, and provides certain singleton classes, depending on what inherited class you are using its members with.

Functions

FunctionsmemberhiddenFunctions [toggle]

Ref<Instance>FindService ( string className )

Returns the service specified by the given className if it's already created, errors for an invalid name.

|RMD member="API:Class/ServiceProvider/FindService"|Returns the service specified by the given className if it's already created, errors for an invalid name.|/RMD|
Ref<Instance>GetService ( string className )

Returns the service with the requested class name, creating it if it does not exist.

|RMD member="API:Class/ServiceProvider/GetService"|Returns the service with the requested class name, creating it if it does not exist.|/RMD|
InstancegetService ( string className ) [deprecated]

Deprecated in favor of GetService.

|RMD member="API:Class/ServiceProvider/getService"|Deprecated in favor of GetService.|/RMD|
Instanceservice ( string className ) [deprecated]

Deprecated in favor of GetService.

|RMD member="API:Class/ServiceProvider/service"|Deprecated in favor of GetService.|/RMD|
FindService ( string className )
Returns the service specified by the given className if it's already created, errors for an invalid name.
GetService ( string className )
Returns the service with the requested class name, creating it if it does not exist.
getService ( string className ) [deprecated]
Deprecated in favor of GetService.
service ( string className ) [deprecated]
Deprecated in favor of GetService.


Events

EventsmemberhiddenEvents [toggle]

Close ( )

Fires when the current place is exited.

|RMD member="API:Class/ServiceProvider/Close"|Fires when the current place is exited.|/RMD|
ServiceAdded ( Instance service )

Fired when a service is created.

|RMD member="API:Class/ServiceProvider/ServiceAdded"|Fired when a service is created.|/RMD|
ServiceRemoving ( Instance service )

Fired when a service is about to be removed.

|RMD member="API:Class/ServiceProvider/ServiceRemoving"|Fired when a service is about to be removed.|/RMD|
CloseLate ( ) [LocalUserSecurity]

Fired immediately after the Close signal is fired.

|RMD member="API:Class/ServiceProvider/CloseLate"|Fired immediately after the Close signal is fired.|/RMD|
Close ( )
Fires when the current place is exited.
Fired when a service is created.
Fired when a service is about to be removed.
CloseLate ( ) [LocalUserSecurity]
Fired immediately after the Close signal is fired.

Inherited Classes

DataModel.pngDataModel
Object Icon.pngGenericSettings
|RMD member="API:Class/ServiceProvider"|A ServiceProvider is an abstract class, which stores, and provides certain singleton classes, depending on what inherited class you are using its members with. |/RMD|