Prince William and Prince Harry attend premiere of 'Star Wars: The Last Jedi'

The princes are rumored to have made a cameo in the new film.

William and Harry were greeted by BB-8 and stormtroopers lining the carpet, as well Disney executives including Bob Iger, the Chairman and Chief Executive Officer of The Walt Disney Company.

Fan favorites Chewbacca C3PO and R2-D2 were also present for the thousands of fans who came out to catch a glimpse of the iconic characters.

After months of speculation, Boyega told BBC Radio 4 in November that William and Harry, who visited the set in April 2016, had cameos in the film.

"I've had enough with those secrets," Boyega said. "They came on set. They were there. I'm sick of hiding it. I think it was leaked anyway."

The brothers are rumored to play stormtroopers in the film. Once inside the Royal Albert Hall, William and Harry were presented with stormtrooper masks in an apparent reference to their purported cameos in the film.

After the line-up, the two princes were each given a stormtrooper helmet of their own by Lily Chambers, 12, and Eloisa Lerner, 8, whose fathers are both executives at Disney.

"Wow," said William. "Should I put this on?"

Kensington Palace has always refused to confirm whether the brothers have cameos in the film.

"I want to dedicate tonight to Carrie, who is up there right now flipping me the bird, saying 'Damn it, Rian, don't you dare make this night a solemn tribute.'"

"So let's all have a blast tonight for Carrie," he added.

The actress died suddenly last year around this time after suffering cardiac arrest following an in-flight medical emergency on a plane from London to Los Angeles.

Hamill paid tribute to his late co-star and said it had been a privilege to work with her. "She was so much fun and you're going to love her performance. She is great in the film," he said.

William, Kate and Harry's Royal Foundation invited 400 young people, military veterans and volunteers from programs it supports, including Coach Core, Full Effect and the Endeavor Fund, to join the princes at the premiere.

Kensington Palace said the premiere was “an opportunity to recognize and celebrate people who have worked hard to change their lives and the lives of others.”

Several victims of the Grenfell Tower disaster were also invited to the premiere by the Royal Foundation.

The film follows 2015’s "Star Wars: The Force Awakens" and is the second installment of the sequel trilogy series.

Disney is the parent company of ABC News.