File:Callback icon.png

From Legacy Roblox Wiki
Jump to navigationJump to search

Callback_icon.png(18 × 18 pixels, file size: 474 bytes, MIME type: image/png)

A callback is a type of member that allows the user to pass a piece of code (as a function) to be called internally by the software later on. Note that a callback is not a method, despite sharing a similar icon. Just like Method, Property, and Event, a Callback is a member type of its own (ie: [[MemberName (Callback)]]).

Usage:

Object.Callback = function()
-- put stuff here
end

print(Object.Callback) -- errors; may only be written to.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current23:47, 24 December 2022Thumbnail for version as of 23:47, 24 December 202218 × 18 (474 bytes)Maintenance script (talk | contribs)== Summary == Importing file