What is the name of Caribbean fruit that purple on outside and a milky whitish color inside?

The name of the Caribbean fruit that is purple on the outside and a milky whitish color inside is:

Mammee Apple (_Mammea americana_)

Commonly known as "Mammee", the Mammee Apple originates from tropical America. It is cultivated and available in numerous Caribbean countries, South America, Central America and also Florida. The fruit is popular in many cultures for its sweet and luscious pulp. The mammee apple is typically harvested when it is still firm, and it will continue to ripen after being picked. The fruit is generally eaten ripe, and it can be used to make beverages, jams, and desserts.